|
|
@@ -68,14 +68,14 @@
|
|
|
<!--开发-->
|
|
|
<profile>
|
|
|
<id>dev</id>
|
|
|
- <properties>
|
|
|
- <!-- 环境标识,需要与配置文件的名称相对应 -->
|
|
|
- <activatedEnv>dev</activatedEnv>
|
|
|
- </properties>
|
|
|
<activation>
|
|
|
<!-- 默认环境 -->
|
|
|
<activeByDefault>true</activeByDefault>
|
|
|
</activation>
|
|
|
+ <properties>
|
|
|
+ <!-- 环境标识,需要与配置文件的名称相对应 -->
|
|
|
+ <activatedEnv>druid-dev</activatedEnv>
|
|
|
+ </properties>
|
|
|
</profile>
|
|
|
<!--生产-->
|
|
|
<profile>
|
|
|
@@ -88,6 +88,25 @@
|
|
|
|
|
|
|
|
|
<build>
|
|
|
+ <resources>
|
|
|
+ <!-- 将所有application开头的yaml文件排除,可以排除多个 -->
|
|
|
+ <resource>
|
|
|
+ <directory>src/main/resources</directory>
|
|
|
+ <excludes>
|
|
|
+ <exclude>application*.yml</exclude>
|
|
|
+ </excludes>
|
|
|
+ </resource>
|
|
|
+
|
|
|
+ <!-- 根据激活条件引入打包所需的配置文件,可以引入多个 -->
|
|
|
+ <resource>
|
|
|
+ <directory>src/main/resources</directory>
|
|
|
+ <filtering>true</filtering>
|
|
|
+ <includes>
|
|
|
+ <include>application.yml</include>
|
|
|
+ <include>application-${activatedEnv}.yml</include>
|
|
|
+ </includes>
|
|
|
+ </resource>
|
|
|
+ </resources>
|
|
|
<finalName>kede-yfdk</finalName>
|
|
|
<plugins>
|
|
|
<plugin>
|