2023-11-30 20:15:53 +08:00
|
|
|
|
# Tomcat
|
|
|
|
|
|
server:
|
2024-04-22 18:58:46 +08:00
|
|
|
|
port: 29302
|
2023-11-30 20:15:53 +08:00
|
|
|
|
|
2024-05-30 16:20:20 +08:00
|
|
|
|
# Spring Boot Actuator V2中风险漏洞处理,禁止远程端口访问
|
|
|
|
|
|
management:
|
|
|
|
|
|
endpoint:
|
|
|
|
|
|
env:
|
|
|
|
|
|
enabled: false
|
|
|
|
|
|
|
2023-11-30 20:15:53 +08:00
|
|
|
|
# Spring
|
|
|
|
|
|
spring:
|
|
|
|
|
|
application:
|
|
|
|
|
|
# 应用名称
|
2023-12-08 09:51:56 +08:00
|
|
|
|
name: sgzb-material
|
2023-11-30 20:15:53 +08:00
|
|
|
|
profiles:
|
|
|
|
|
|
# 环境配置
|
|
|
|
|
|
active: sgzb_cloud_dev
|
|
|
|
|
|
cloud:
|
2024-01-22 20:03:01 +08:00
|
|
|
|
loadbalancer:
|
|
|
|
|
|
# 关闭Ribbon的负载均衡器
|
|
|
|
|
|
ribbon:
|
|
|
|
|
|
enabled: false
|
|
|
|
|
|
# 开启Nacos的负载均衡器
|
|
|
|
|
|
nacos:
|
|
|
|
|
|
enabled: true
|
2023-11-30 20:15:53 +08:00
|
|
|
|
nacos:
|
|
|
|
|
|
discovery:
|
|
|
|
|
|
# 服务注册地址
|
2024-05-30 15:20:28 +08:00
|
|
|
|
server-addr: 192.168.0.14:8848
|
2023-11-30 20:15:53 +08:00
|
|
|
|
namespace: sgzb_cloud_dev
|
|
|
|
|
|
config:
|
|
|
|
|
|
# 配置中心地址
|
2024-05-30 15:20:28 +08:00
|
|
|
|
server-addr: 192.168.0.14:8848
|
2023-11-30 20:15:53 +08:00
|
|
|
|
namespace: sgzb_cloud_dev
|
|
|
|
|
|
# 配置文件格式
|
|
|
|
|
|
file-extension: yml
|
|
|
|
|
|
# 共享配置
|
|
|
|
|
|
shared-configs:
|
|
|
|
|
|
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|