Commit 83d59047 by jianan

bootstrap

parent 34c6e257
...@@ -4,6 +4,8 @@ spring: ...@@ -4,6 +4,8 @@ spring:
# active: '@spring.profiles.active@' # active: '@spring.profiles.active@'
--- ---
spring: spring:
application:
name: yd-csf-api
profiles: dev profiles: dev
main: main:
allow-bean-definition-overriding: true allow-bean-definition-overriding: true
...@@ -31,6 +33,8 @@ spring: ...@@ -31,6 +33,8 @@ spring:
server-addr: ${spring.cloud.nacos.config.server-addr} server-addr: ${spring.cloud.nacos.config.server-addr}
--- ---
spring: spring:
application:
name: yd-csf-api
profiles: test profiles: test
main: main:
allow-bean-definition-overriding: true allow-bean-definition-overriding: true
...@@ -40,7 +44,7 @@ spring: ...@@ -40,7 +44,7 @@ spring:
# 配置中心 # 配置中心
config: config:
# 命名空间id(此处不用public,因public初始化的空间, id为空) # 命名空间id(此处不用public,因public初始化的空间, id为空)
namespace: c1e4cbcf-d8b7-4da9-a75a-7b75890fc390 namespace: b3b01715-eb85-4242-992a-5aff03d864d4
# nacos的ip地址和端口 # nacos的ip地址和端口
server-addr: 139.224.145.34:8848 server-addr: 139.224.145.34:8848
# 这个就表示 在我们nacos命名空间id为 dev中 有一个data-id 为 demo-service.yml 的配置文件 读取这个里面的配置 # 这个就表示 在我们nacos命名空间id为 dev中 有一个data-id 为 demo-service.yml 的配置文件 读取这个里面的配置
......
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