首页 > 其他分享 >Springboot .properties或.yml配置文件读取pom.xml文件值

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

时间:2023-01-10 15:44:52浏览次数:39  
标签:xml Springboot 配置文件 yml pom properties

需要在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

标签:xml,Springboot,配置文件,yml,pom,properties
From: https://www.cnblogs.com/hu-kang/p/17040505.html

相关文章