有时候配置文件需要读取pom文件配置<properties></properties>中间自定义属性值的时候可以用@@获取

例:@package.parameter@

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

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

相关文章:

  • 2021-07-27
  • 2021-05-24
  • 2022-12-23
  • 2022-02-08
  • 2021-07-25
  • 2021-06-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-21
  • 2021-07-07
  • 2022-02-08
  • 2021-04-11
  • 2021-11-21
  • 2021-08-28
  • 2022-01-04
相关资源
相似解决方案