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

后端 未结 12 1587
逝去的感伤
逝去的感伤 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 17:05

    Add your dependencies like mongodb,web,jpa. Delete/clear the remainings.

    
      
        org.springframework.boot
        spring-boot-starter-data-mongodb
      
      
        org.springframework.boot
        spring-boot-starter-web
      
    
    

提交回复
热议问题