首页 > 编程语言 > 详细

关于springboot maven项目中的一个奇葩错误的解决方案

时间:2018-12-11 10:33:52      阅读:236      评论:0      收藏:0      [点我收藏+]

错误描述如下

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>
<!-- 打包时将jsp文件拷贝到META-INF目录下 -->
<resource>
<!-- 指定resources插件处理哪个目录下的资源文件 -->
<directory>src/main/webapp</directory>
<!--注意此次必须要放在此目录下才能被访问到 -->
<targetPath>META-INF/resources</targetPath>
<includes>
<include>**/**</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>

就因为资源文件在加载的时候缺少了这个看进来无用的内容(红字部分)

在pom.xml中添加上就可以完正常运行了,这个错误是反复尝试得到的结果,希望后来者谨记!

关于springboot maven项目中的一个奇葩错误的解决方案

原文:https://www.cnblogs.com/duzjextjs/p/10100467.html

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