2026-03-31 19:35:21 +08:00
|
|
|
#################### 注册中心 + 配置中心相关配置 ####################
|
2026-02-03 10:18:40 +08:00
|
|
|
spring:
|
|
|
|
|
cloud:
|
|
|
|
|
nacos:
|
|
|
|
|
server-addr: 192.168.1.103:18848 # Nacos 服务器地址
|
|
|
|
|
username: # Nacos 账号
|
|
|
|
|
password: # Nacos 密码
|
|
|
|
|
discovery: # 【配置中心】配置项
|
2026-03-31 19:35:21 +08:00
|
|
|
namespace: 7e15dd2b-2aa2-487d-9e80-1c01c7b9f742 # 命名空间。这里使用 dev 开发环境
|
2026-02-03 10:18:40 +08:00
|
|
|
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
|
|
|
|
|
config: # 【注册中心】配置项
|
2026-03-31 19:35:21 +08:00
|
|
|
namespace: 7e15dd2b-2aa2-487d-9e80-1c01c7b9f742 # 命名空间。这里使用 dev 开发环境
|
2026-02-03 10:18:40 +08:00
|
|
|
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
|
|
|
|
|
|
2026-03-31 19:35:21 +08:00
|
|
|
#################### 监控相关配置 ####################
|
2026-02-03 10:18:40 +08:00
|
|
|
# Actuator 监控端点的配置项
|
|
|
|
|
management:
|
|
|
|
|
endpoints:
|
|
|
|
|
web:
|
|
|
|
|
base-path: /actuator # Actuator 提供的 API 接口的根目录。默认为 /actuator
|
|
|
|
|
exposure:
|
|
|
|
|
include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。
|
|
|
|
|
|