Failed to auto-configure a DataSource: 'spring.datasource.url' is not specified

后端 未结 12 1598
逝去的感伤
逝去的感伤 2020-12-23 16:39

I have created a basic spring boot application from SPRING INITIALIZR with the Web, MongoDB and JPA dependencies.

When I try to run the spring boot

12条回答
  •  庸人自扰
    2020-12-23 16:51

    Go to resources folder where the application.properties is present, update the below code in that.

    spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
    

提交回复
热议问题