Exception in monitor thread while connecting to server localhost:27017 while accessing MongoDB with Java

10/18/2021 springbootmongodb

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
Last Updated: 12/26/2022, 11:54:10 AM