Springboot .properties或.yml配置文件读取pom.xml文件值

需要在pom.xml中打开过滤才可以

<build>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>         
</build>

转载于:https://www.cnblogs.com/boris-et/p/11093016.html

posted @ 2023-01-10 15:36  致力于工作  阅读(231)  评论(0)    收藏  举报