一.当你下面这些都是正确的,还是报错
1.mapper.xml的namespace正确
2.mapper.xml和.java文件名一致,方法名和id名保持一致
3.mapper的XML配置路径正确
4.检查注解都是正确的
5.你的文件名的点号不是逗号
二.来在pom.xml中加上这段配置吧,扫描资源信息的配置
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.*</include>
</includes>
</resource>
</resources>
</build>