Maven SpringBoot项目启动报错 Cannot determine embedded database driver class for database type NONE
出现这个错误首先
1、检查yml中是否配置了数据库连接(如果配置了第二步)
2、检查编译目录target目录下classes目录下是否有yml等配置文件
如果上面两步检查都没有问题,那么请重新clean再编译。
如果第二步发现yml等配置文件没有存在目录下,那就在pom文件中加下如下配置:
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<excludes>
<exclude>**/*</exclude>
</excludes>
<filtering>false</filtering>
</resource>
</resources>
</build>
然后重新clean再编译即可。