mitao
2024-04-12 a7a8a50f48c1bff5ddc52b3bad1782328f8043d8
pom.xml
@@ -243,5 +243,25 @@
            </snapshots>
        </pluginRepository>
    </pluginRepositories>
  <profiles>
    <profile>
      <id>dev</id>
      <properties>
        <!-- 环境标识,需要与配置文件的名称相对应 -->
        <profiles.active>dev</profiles.active>
        <logging.level>debug</logging.level>
      </properties>
      <activation>
        <!-- 默认环境 -->
        <activeByDefault>true</activeByDefault>
      </activation>
    </profile>
    <profile>
      <id>prod</id>
      <properties>
        <profiles.active>prod</profiles.active>
        <logging.level>warn</logging.level>
      </properties>
    </profile>
  </profiles>
</project>