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

后端 未结 12 1621
逝去的感伤
逝去的感伤 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:57

    Add the line below in application.properties file under resource folder and restart your application.

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

提交回复
热议问题