feat(bootstrap.yml): 开发环境的配置中心修改为线上共享配置中心

This commit is contained in:
郝先瑞 2022-02-15 23:16:43 +08:00
parent 468033ae69
commit a6f301fd38
16 changed files with 39 additions and 31 deletions

View File

@ -14,7 +14,7 @@ spring:
server-addr: http://localhost:8848
# 配置中心
config:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
server-addr: http://c.youlai.tech:8848
file-extension: yaml
# 公共配置
shared-configs[0]:

View File

@ -11,9 +11,11 @@ spring:
nacos:
discovery:
server-addr: http://c.youlai.tech:8848
namespace: youlai-namespace-id
config:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
file-extension: yaml
namespace: youlai-namespace-id
shared-configs[0]:
data-id: youlai-common.yaml
refresh: true

View File

@ -14,7 +14,10 @@ spring:
server-addr: http://localhost:8848
# 配置中心
config:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
# 本地启动
## server-addr: ${spring.cloud.nacos.discovery.server-addr}
# 极速启动
server-addr: http://c.youlai.tech:8848
file-extension: yaml
shared-configs[0]:
data-id: youlai-common.yaml

View File

@ -11,12 +11,12 @@ spring:
nacos:
discovery:
server-addr: http://c.youlai.tech:8848
namespace: youlai-namespace-id
config:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
file-extension: yaml
namespace: youlai-namespace-id
# 公共配置
shared-configs[0]:
data-id: youlai-common.yaml
refresh: true
refresh: true

View File

@ -14,7 +14,10 @@ spring:
server-addr: http://localhost:8848
# 配置中心
config:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
# 本地启动
## server-addr: ${spring.cloud.nacos.discovery.server-addr}
# 极速启动
server-addr: http://c.youlai.tech:8848
file-extension: yaml
shared-configs[0]:
data-id: youlai-common.yaml

View File

@ -9,13 +9,15 @@ spring:
matching-strategy: ant_path_matcher
cloud:
nacos:
# 注册中心
discovery:
server-addr: http://c.youlai.tech:8848
namespace: youlai-namespace-id
# 配置中心
config:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
file-extension: yaml
namespace: youlai-namespace-id
shared-configs[0]:
data-id: youlai-common.yaml
refresh: true

View File

@ -14,12 +14,8 @@ spring:
server-addr: http://localhost:8848
# 配置中心
config:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
server-addr: http://c.youlai.tech:8848
file-extension: yaml
shared-configs[0]:
data-id: youlai-common.yaml
refresh: true
# 日志目录
logfile:
dir: D://logssss/${spring.application.name}
refresh: true

View File

@ -11,11 +11,11 @@ spring:
nacos:
discovery:
server-addr: http://c.youlai.tech:8848
namespace: youlai-namespace-id
config:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
file-extension: yaml
namespace: youlai-namespace-id
shared-configs[0]:
data-id: youlai-common.yaml
refresh: true
refresh: true

View File

@ -14,7 +14,7 @@ spring:
server-addr: http://localhost:8848
# 配置中心
config:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
server-addr: http://c.youlai.tech:8848
file-extension: yaml
# 公共配置
shared-configs[0]:

View File

@ -11,11 +11,11 @@ spring:
nacos:
discovery:
server-addr: http://c.youlai.tech:8848
namespace: youlai-namespace-id
config:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
file-extension: yaml
namespace: youlai-namespace-id
shared-configs[0]:
data-id: youlai-common.yaml
refresh: true

View File

@ -12,7 +12,7 @@ spring:
server-addr: http://localhost:8848
# 配置中心
config:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
server-addr: http://c.youlai.tech:8848
file-extension: yaml
shared-configs[0]:
data-id: youlai-common.yaml

View File

@ -7,13 +7,15 @@ spring:
matching-strategy: ant_path_matcher
cloud:
nacos:
# 注册中心
discovery:
server-addr: http://c.youlai.tech:8848
namespace: youlai-namespace-id
# 配置中心
config:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
file-extension: yaml
namespace: youlai-namespace-id
shared-configs[0]:
data-id: youlai-common.yaml
refresh: true

View File

@ -1,5 +1,5 @@
spring:
application:
name: youlai-auth
profiles:
active: dev
application:
name: youlai-auth

View File

@ -2,8 +2,6 @@ server:
port: 9999
spring:
application:
name: youlai-gateway
cloud:
nacos:
# 注册中心
@ -11,7 +9,7 @@ spring:
server-addr: http://localhost:8848
# 配置中心
config:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
server-addr: http://c.youlai.tech:8848
file-extension: yaml
shared-configs[0]:
data-id: youlai-common.yaml

View File

@ -10,11 +10,11 @@ spring:
nacos:
discovery:
server-addr: http://c.youlai.tech:8848
namespace: youlai-namespace-id
config:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
file-extension: yaml
namespace: youlai-namespace-id
shared-configs[0]:
data-id: youlai-common.yaml
refresh: true
refresh: true

View File

@ -1,3 +1,5 @@
spring:
application:
name: youlai-gateway
profiles:
active: dev