feat: nacos配置区分环境
This commit is contained in:
40
pom.xml
40
pom.xml
@@ -271,6 +271,12 @@
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
<filtering>true</filtering>
|
||||
</resource>
|
||||
</resources>
|
||||
</build>
|
||||
|
||||
<repositories>
|
||||
@@ -298,4 +304,38 @@
|
||||
</pluginRepository>
|
||||
</pluginRepositories>
|
||||
|
||||
<!-- 环境 -->
|
||||
<profiles>
|
||||
<!-- 开发 -->
|
||||
<profile>
|
||||
<id>dev</id>
|
||||
<activation>
|
||||
<!--默认激活配置-->
|
||||
<activeByDefault>true</activeByDefault>
|
||||
</activation>
|
||||
<properties>
|
||||
<!--当前环境-->
|
||||
<profileName>dev</profileName>
|
||||
<nacosNamespace>wfc-dev</nacosNamespace>
|
||||
</properties>
|
||||
</profile>
|
||||
<!-- 测试 -->
|
||||
<profile>
|
||||
<id>test</id>
|
||||
<properties>
|
||||
<!--当前环境-->
|
||||
<profileName>test</profileName>
|
||||
<nacosNamespace>wfc-test</nacosNamespace>
|
||||
</properties>
|
||||
</profile>
|
||||
<!-- 生产 -->
|
||||
<profile>
|
||||
<id>prod</id>
|
||||
<properties>
|
||||
<!--当前环境-->
|
||||
<profileName>prod</profileName>
|
||||
<nacosNamespace>wfc-prod</nacosNamespace>
|
||||
</properties>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
||||
Reference in New Issue
Block a user