配置文件修改
This commit is contained in:
parent
eb09e27ab5
commit
1ee2760a7c
|
|
@ -2,13 +2,6 @@
|
||||||
server:
|
server:
|
||||||
port: 29301
|
port: 29301
|
||||||
|
|
||||||
|
|
||||||
# Spring Boot Actuator V2中风险漏洞处理,禁止远程端口访问
|
|
||||||
management:
|
|
||||||
endpoint:
|
|
||||||
env:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
# Spring
|
# Spring
|
||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
|
|
@ -16,26 +9,4 @@ spring:
|
||||||
name: sgzb-base
|
name: sgzb-base
|
||||||
profiles:
|
profiles:
|
||||||
# 环境配置
|
# 环境配置
|
||||||
active: sgzb_cloud_local
|
active: sgzb_cloud_local
|
||||||
cloud:
|
|
||||||
loadbalancer:
|
|
||||||
# 关闭Ribbon的负载均衡器
|
|
||||||
ribbon:
|
|
||||||
enabled: false
|
|
||||||
# 开启Nacos的负载均衡器
|
|
||||||
nacos:
|
|
||||||
enabled: true
|
|
||||||
nacos:
|
|
||||||
discovery:
|
|
||||||
# 服务注册地址
|
|
||||||
server-addr: 127.0.0.1:8848
|
|
||||||
namespace: sgzb_cloud_dev_nxjj
|
|
||||||
config:
|
|
||||||
# 配置中心地址
|
|
||||||
server-addr: 127.0.0.1:8848
|
|
||||||
namespace: sgzb_cloud_dev_nxjj
|
|
||||||
# 配置文件格式
|
|
||||||
file-extension: yml
|
|
||||||
# 共享配置
|
|
||||||
shared-configs:
|
|
||||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
|
||||||
Loading…
Reference in New Issue