碼迷,mamicode.com
首頁 > 移動開發 > 詳細

springboot啟動報錯退出,To display the conditions report re-run your application with 'debug' enabled.

時間:2019-01-19 13:14:23      閱讀:982      評論:0      收藏:0      [點我收藏+]

標簽:roc   cond   rip   proc   cti   derby   nbsp   file   conf   

Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug‘ enabled.
2019-01-19 12:01:39.870 ERROR 8324 --- [  restartedMain] o.s.b.d.LoggingFailureAnalysisReporter   :

***************************
APPLICATION FAILED TO START
***************************

Description:

Failed to auto-configure a DataSource: ‘spring.datasource.url‘ is not specified and no embedded datasource could be auto-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 0

 

原因依賴中添加了數據層依賴,springboot啟動時自動注入DataSource,還沒配置所以報錯。

注釋掉數據層即可。

springboot啟動報錯退出,To display the conditions report re-run your application with 'debug' enabled.

標簽:roc   cond   rip   proc   cti   derby   nbsp   file   conf   

原文地址:https://www.cnblogs.com/astrand/p/10291307.html

(0)
(0)
   
舉報
評論 一句話評論(0
0條  
登錄后才能評論!
? 2014 mamicode.com 版權所有 京ICP備13008772號-2
迷上了代碼!
公式规律下期单双