<build><resources><resource><directory>src/main/java</directory><includes><include>**/*.xml</include></includes><!-- 不过滤 src/main/java 底下的xml文件 --><filtering>false</filtering></resource></resources><plugins><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId></plugin></plugins></build>