maven将xml文件一起打包

pom文件配置

<build>
	<!-- 将mapper.xml一起打包 -->
	<resources>
		<resource>
			<directory>src/main/resources</directory>
			<includes>
				<include>**/*.*</include>
			</includes>
		</resource>
		<resource>
			<directory>src/main/java</directory>
			<includes>
				<include>**/*.xml</include>
			</includes>
		</resource>
	</resources>
</build>
posted @ 2019-10-04 09:46  经典鸡翅  阅读(1780)  评论(0编辑  收藏  举报