Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured

前端 未结 28 2558
天命终不由人
天命终不由人 2020-11-30 19:57

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

28条回答
  •  眼角桃花
    2020-11-30 20:30

    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

    1. First of all, I changed default packaging type to jar (Spring Boot Initializer gives pom in packaging)

      jar

    2. I added unintentional some plugins:

      maven-war-plugin true target/web.xml src/main/webapp true

    I hope my answer will help someone.

提交回复
热议问题