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

派送点项目启动报错

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

  Reason: Failed to determine a suitable driver class

  

如图:

 

百度翻译:

  配置数据源失败:未指定“url”属性,并且无法配置嵌入的数据源。

  未能确定合适的驱动程序类

百度搜索解决方案:https://blog.csdn.net/u010448530/article/details/80840828

尝试解决第一次:1、在@SpringBootApplication注解上加上exclude,解除自动加载DataSourceAutoConfiguration

好吧,没解决

尝试解决第二次:在

中加了database的配置

 

posted @ 2019-07-04 17:11  LearnSB  阅读(1652)  评论(0编辑  收藏  举报