Exception in monitor thread while connecting to server localhost:27017 while accessing MongoDB with Java
have the following exception when running Java app for MongoDB:
[localhost:27017] org.mongodb.driver.cluster : Exception in monitor thread while connecting to server localhost:27017 while accessing MongoDB with Java
1
I was to add exclusion annotation to my main annotated class,
i.e. instead of
@SpringBootApplication
1
I should have
@SpringBootApplication
@EnableAutoConfiguration(exclude={MongoAutoConfiguration.class})
1
2
2