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