I am working on a Spring Boot Batch example with MongoDB and I have already started the mongod server.
When I launch my application, I
I had the same issue and tried all suggestions above, but didnt work out. I am posting my answer for furture readers. Before it was working fine but somehow it apeared again. I resolved this issue by removing some unnecessary plugnins and depencies from pom.xml
First of all, I changed default packaging type to jar (Spring Boot Initializer gives pom in packaging)
I added unintentional some plugins:
I hope my answer will help someone.