1、debug日志出现Property ‘mapperLocations’ was not specified.
解决方案:pom文件中build标签中加入如下代码
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
本文介绍了解决在使用MyBatis框架时遇到的debug日志提示Property‘mapperLocations’未指定的问题。通过在pom.xml的build标签中添加资源配置,包括指定目录src/main/java下的*.properties和*.xml文件,可以成功解决此问题。
3455

被折叠的 条评论
为什么被折叠?



