码迷,mamicode.com
首页 > 编程语言 > 详细

spring boot 打包可以运行,但是执行main方法不能运行

时间:2017-10-23 15:44:10      阅读:495      评论:0      收藏:0      [点我收藏+]

标签:数据库   embed   setting   current   resource   not   driver   情况   相关   

报错信息如下

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方法不能运行

标签:数据库   embed   setting   current   resource   not   driver   情况   相关   

原文地址:http://www.cnblogs.com/qinshuipo/p/7716894.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!