Unable to connect to mongodb Atlas Cluster from SpringBoot Application

HI Everyone,
I am unable to connect my MongoDb(V4.4) Atlas Cluster from Spring Boot Application. Please Find The below Screenshot.

Thank You in Advance

1 Like

The error indicates that you are trying to connect to

localhost:27017

This is not the address of your Atlas Cluster. It means your application is not configured correctly. Go over the installation/configuration instructions and make sure you specify the appropriate URI.

1 Like

Hello Sandeep did your error het resolved ?

I am facing same issue i have applied exclusions at the MainApp runner class as shown below :

@SpringBootApplication(exclude = {
        MongoAutoConfiguration.class,
        MongoDataAutoConfiguration.class
})
@NoArgsConstructor
@EnableAutoConfiguration
public class MainApplication {