maven打包无法打包mybatis及系统配置文件问题

mac2022-06-30  147

<resources> <!-- mybatis映射文件 --> <resource> <directory>src/main/java/com/bsh/mybatis</directory> <targetPath>com/bsh/mybatis</targetPath> <includes> <include>**/*.xml</include> </includes> <filtering>false</filtering> </resource> <!-- 项目配置文件--> <resource> <directory>src/main/resources</directory> <targetPath>./</targetPath> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> <filtering>false</filtering> </resource> </resources>

  在pom.xml中<build></build> 节点中间加上上述配置路径需要结合自己的项目结构

转载于:https://www.cnblogs.com/kms1989/p/6044207.html

相关资源:JAVA上百实例源码以及开源项目
最新回复(0)