sidstory
SpringBoot报错 failed to determine a suitable driver class
作者:smice分类:Java
日期:2020-12-16 10:01:002020-12-16阅读:406
之前正常的springboot项目,idea升级后就运行错误,提示如下:
根据提示是数据库配置有问题,我是用了mybatis那就是没读取到配置文件,在pom.xml的resources标签里加入以下内容解决。
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.yml</include>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
弹幕评论