错误信息:
警告: Property ‘mapperLocations’ was specified but matching resources are not found.
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.gem.mapper.AccountMapper.selectAccount
原因:maven默认打包是不会认为资源文件需要打入包内的,所以需要设置
解决方案:
在pom.xml的build标签中添加如下配置
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>