springcloud項目啟動時,啟動報錯:Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

分析:application.yml檔案中已經配置了資料庫
解決方案:通過分析發現,application.yml檔案idea并未識别,進行手動添加。
此時,項目的application.yml檔案被識别。
springcloud項目啟動時,啟動報錯:Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
分析:application.yml檔案中已經配置了資料庫
解決方案:通過分析發現,application.yml檔案idea并未識别,進行手動添加。
此時,項目的application.yml檔案被識别。