Commit df5c37f7 authored by fangxinjiang's avatar fangxinjiang

init

parent 98fbe792
......@@ -255,10 +255,7 @@
</profile>
<profile>
<id>test</id>
<activation>
<!-- 默认环境 -->
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<!-- 环境标识,需要与配置文件的名称相对应 -->
<profiles.active>test</profiles.active>
......
......@@ -11,8 +11,6 @@ spring:
config:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
config:
activate:
on-profile: test
import:
- nacos:application-@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