<resources>
<!-- 这段代码解决mybatis xml无法打入jar包的问题 -->
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.class</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
<resource>
<!-- 设置主资源目录,此目录下的文件都会被作为资源文件加入到class下 -->
<directory>src/main/resources</directory>
<filtering>false</filtering>
<!-- 打包的资源,路径以directory作为当前位置 -->
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
<include>**/*.conf</include>
<include>**/*.xls</include>
<include>**/*.xlsx</include>
</includes>
</resource>
</resources>
网友评论