运行时报这个错,但是如果target下有xxxx.xml文件,这时只需要在maven的pom.xml文件里加上
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
</resources>
</build>
就能加载到CustomerMapper.xml