属性替换为com.google.guava 19

ecbunoof  于 2021-07-11  发布在  Java
关注(0)|答案(1)|浏览(435)

关闭。这个问题需要细节或清晰。它目前不接受答案。
**想改进这个问题吗?**通过编辑这个帖子来添加细节并澄清问题。

上个月关门了。
改进这个问题
我已经用com.google.guava 19代替房产有一段时间了。
我有maven pom的资料

  1. <profiles>
  2. <profile>
  3. <id>dev</id>
  4. <properties>
  5. <environment>dev</environment>
  6. ...

以下为pom详情

  1. <!-- Add configuration for property substitution -->
  2. <build>
  3. <testOutputDirectory>${basedir}/target/classes</testOutputDirectory>
  4. <filters>
  5. <filter>src/main/resources/config.properties</filter>
  6. </filters>
  7. <resources>
  8. <resource>
  9. <directory>src/main/resources</directory>
  10. <filtering>true</filtering>
  11. </resource>
  12. </resources>
  13. </build>

将配置文件中的environment=${environment}替换为profile属性。
如何在以后的版本中做到这一点,或者有没有一种不使用spring的更轻松的方法来做到这一点?

8gsdolmq

8gsdolmq1#

Guava30.0-jre似乎重新引入了这些功能,不需要进行其他更改。

相关问题