配置文件修改

This commit is contained in:
liang.chao 2024-08-26 20:27:17 +08:00
parent eb09e27ab5
commit 1ee2760a7c
1 changed files with 1 additions and 30 deletions

View File

@ -2,13 +2,6 @@
server:
port: 29301
# Spring Boot Actuator V2中风险漏洞处理禁止远程端口访问
management:
endpoint:
env:
enabled: false
# Spring
spring:
application:
@ -16,26 +9,4 @@ spring:
name: sgzb-base
profiles:
# 环境配置
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}
active: sgzb_cloud_local