I am working on a Spring Boot Batch example with MongoDB and I have already started the mongod server.
mongod
When I launch my application, I
Excluding the DataSourceAutoConfiguration.class worked for me:
DataSourceAutoConfiguration.class
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class })