maven项目无法自动生成target或者target中的mapper.xml
1.在pom.xml中配置
<!-- 在build中配置resource,防止资源导出失败-->
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
</resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
</resource>
</resources>
</build>
2.先clean
3.Invaldate Caches/Restart。。
4.Install