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

Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
Disconnected from the target VM, address: ‘127.0.0.1:52035’, transport: ‘socket’
2019-07-12 09:47:04.380 ERROR 6584 — [ main] o.s.b.d.LoggingFailureAnalysisReporter :


APPLICATION FAILED TO START


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

Action:

Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).

Process finished with exit code 1

在這裏插入圖片描述
其中的測試環境的yml我沒有配置,在默認的yml中卻寫了引用到sit 的找不到這個所以報錯,其他的錯誤參考一下鏈接
https://www.jianshu.com/p/836d455663da

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章