属性替换为com.google.guava 19

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

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

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

<profiles>
    <profile>
        <id>dev</id>
        <properties>
            <environment>dev</environment>
      ...

以下为pom详情

<!-- Add configuration for property substitution -->
<build>
    <testOutputDirectory>${basedir}/target/classes</testOutputDirectory>
    <filters>
        <filter>src/main/resources/config.properties</filter>
    </filters>
    <resources>
        <resource>
            <directory>src/main/resources</directory>
            <filtering>true</filtering>
        </resource>
    </resources>
</build>

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

8gsdolmq

8gsdolmq1#

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

相关问题