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的配置

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM