代码之家  ›  专栏  ›  技术社区  ›  powder366

为什么是IntelliJ pom。xml红色表示配置文件。无液化物和轮廓。没有招摇?

  •  1
  • powder366  · 技术社区  · 7 年前

    为什么我的设置在pom中。IntelliJ red中的xml?

    enter image description here

    我该怎么修?

    1 回复  |  直到 7 年前
        1
  •  0
  •   powder366    7 年前

    我使用IntelliJ,设置在maven配置文件中定义

    enter image description here

    在pom中。xml

       ...
       <profiles>
        <profile>
            <id>no-liquibase</id>
            <properties>
                <profile.no-liquibase>,no-liquibase</profile.no-liquibase>
            </properties>
        </profile>
       ...
    

    弹簧轮廓示例 https://www.mkyong.com/spring/spring-profiles-example/

    Maven配置文件示例 https://www.mkyong.com/maven/how-to-create-user-defined-properties-in-maven/

    在我的IDE中选择它们并重建项目,这为我解决了问题。

    mvn clean install