Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could.
Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured…
这是由于在springboot的配置文件中没有进行数据库相关的配置(url , driver-class等)
解决方式(3种):
在配置文件添加相关配置
在主程序中配置SpringBootApplication的属性,启动时不添加有关数据库相关: @SpringBootAppli
原创
2021-03-20 18:57:04 ·
95 阅读 ·
0 评论