|
@@ -6,10 +6,19 @@ spring:
|
|
|
cloud:
|
|
cloud:
|
|
|
nacos:
|
|
nacos:
|
|
|
config:
|
|
config:
|
|
|
- server-addr: localhost:8848
|
|
|
|
|
- namespace: snowy-cloud-2x-ent-${spring.profiles.active}
|
|
|
|
|
|
|
+ server-addr: ${REGISTER_HOST:192.168.1.245}:${REGISTER_PORT:8848}
|
|
|
|
|
+ namespace: ${NAMESPACE_ID:onlineEducation}
|
|
|
group: ${spring.profiles.active}
|
|
group: ${spring.profiles.active}
|
|
|
prefix: ${spring.application.name}
|
|
prefix: ${spring.application.name}
|
|
|
file-extension: yaml
|
|
file-extension: yaml
|
|
|
- username: nacos
|
|
|
|
|
- password: nacos
|
|
|
|
|
|
|
+ username: ${REGISTER_USERNAME:nacos}
|
|
|
|
|
+ password: ${REGISTER_PASSWORD:nacos}
|
|
|
|
|
+ discovery:
|
|
|
|
|
+ server-addr: ${spring.cloud.nacos.config.server-addr}
|
|
|
|
|
+ namespace: ${NAMESPACE_ID:onlineEducation}
|
|
|
|
|
+ group: ${spring.profiles.active}
|
|
|
|
|
+ username: ${spring.cloud.nacos.config.username}
|
|
|
|
|
+ password: ${spring.cloud.nacos.config.password}
|
|
|
|
|
+ connect-timeout: 5000 # 连接超时5秒
|
|
|
|
|
+ read-timeout: 3000 # 读取超时3秒
|
|
|
|
|
+ retry-times: 3 # 失败后重试3次
|