首页 > 编程语言 > 详细

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

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

报错信息如下

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!