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

前端 未结 28 2565
天命终不由人
天命终不由人 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:31

    I had the same issue resolved by add provided

            
                org.springframework.boot
                spring-boot-starter-data-jpa
            
    
            
                org.springframework.boot
                spring-boot-starter-data-jpa
                provided
            
    

    Source: https://github.com/spring-projects/spring-boot/issues/13796#issuecomment-413313346

提交回复
热议问题