zoukankan      html  css  js  c++  java
  • 关于springboot maven项目中的一个奇葩错误的解决方案

    错误描述如下

    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中添加上就可以完正常运行了,这个错误是反复尝试得到的结果,希望后来者谨记!

  • 相关阅读:
    GetArxPath
    动态链接库
    获取文件名称 消除前面的绝对地址路径
    arx 插入图片
    cstring to utf8
    map 用法
    异常处理
    面向对象 "一"
    configparser模块
    装饰器
  • 原文地址:https://www.cnblogs.com/duzjextjs/p/10100467.html
Copyright © 2011-2022 走看看