pom.xml @@ -251,7 +251,9 @@ </plugins> <resources> <resource> <!--打包该目录下的 application.yml --> <directory>src/main/resources</directory> <!-- 启用过滤 即该资源中的变量将会被过滤器中的值替换 --> <filtering>true</filtering> </resource> </resources>