spring boot 打包可以運行,但是執行main方法不能運行
阿新 • • 發佈:2017-10-23
配置 embed files 可能 active set *** rest epo
報錯信息如下
2017-10-23 15:16:09.750 ERROR 7664 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Cannot determine embedded database driver class for database type NONE
Action:
If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (no profiles are currently active).
可能每個人的情況不太一樣,以上情況大致意思為,該工程引用了數據庫驅動,但是沒有相關的配置。
我的應該是resources 的classpath 出問題了,將其移除然後再重新設置成資源文件即可
spring boot 打包可以運行,但是執行main方法不能運行