Commit df5c37f7 authored by fangxinjiang's avatar fangxinjiang

init

parent 98fbe792
...@@ -255,10 +255,7 @@ ...@@ -255,10 +255,7 @@
</profile> </profile>
<profile> <profile>
<id>test</id> <id>test</id>
<activation>
<!-- 默认环境 -->
<activeByDefault>true</activeByDefault>
</activation>
<properties> <properties>
<!-- 环境标识,需要与配置文件的名称相对应 --> <!-- 环境标识,需要与配置文件的名称相对应 -->
<profiles.active>test</profiles.active> <profiles.active>test</profiles.active>
......
...@@ -11,8 +11,6 @@ spring: ...@@ -11,8 +11,6 @@ spring:
config: config:
server-addr: ${spring.cloud.nacos.discovery.server-addr} server-addr: ${spring.cloud.nacos.discovery.server-addr}
config: config:
activate:
on-profile: test
import: import:
- nacos:application-@profiles.active@.yml - nacos:application-@profiles.active@.yml
- nacos:${spring.application.name}-@profiles.active@.yml - nacos:${spring.application.name}-@profiles.active@.yml
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment