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

有时候配置文件须要读取pom文件配置<properties></properties>中间自定义属性值的时候能够用@@获取ui

例:@package.parameter@spa

而后还须要在pom.xml中打开过滤才能够插件

  <build>
        <resources>
            <resource>
          <!--指定resources插件处理哪一个目录下的资源文件--> <directory>src/main/resources</directory>
          <!--打开资源过滤功能--> <filtering>true</filtering> </resource> </resources> </build>
相关文章
相关标签/搜索