<resources> <resource> <directory>src/main/resources</directory> <includes> <include>**/*</include> </includes> </resource> <resource> <directory>src/main/resources</directory> <excludes> <exclude>certs/*</exclude> </excludes> <filtering>true</filtering> </resource> </resources>
以上是pom文件 和 yml文件的配置,请按照如上类似配置应该可以解决该问题。