需要在webapp的pom问价中找到build标签,在标签里面添加resources标签
<resources>
//可以配置多个资源文件
<resource>
//目标资源文件夹
<directory>src/main/resource</directory>
<includes>
//资源文件路径
<include>com/itheima/crm/mapper/*.xml</include>
<include>**/*.xml</include>
<include>*.properties</include>
</includes>
//剔除过滤器
<filtering>false</filtering>
</resource>
</resources>