This commit is contained in:
2026-03-04 13:18:49 +08:00
parent 495854243f
commit 1fd0cb1f45
2 changed files with 19 additions and 27 deletions

View File

@@ -1,26 +1,26 @@
--- #################### 注册中心 + 配置中心相关配置 ####################
#spring:
# cloud:
# nacos:
# server-addr: 192.168.1.103:18848 # Nacos 服务器地址
# username: # Nacos 账号
# password: # Nacos 密码
# discovery: # 【配置中心】配置项
# namespace: msgCenter # 命名空间。这里使用 dev 开发环境
# group: DEV # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
# metadata:
# version: 1.0.0 # 服务实例的版本号,可用于灰度发布
# config: # 【注册中心】配置项
# namespace: msgCenter # 命名空间。这里使用 dev 开发环境
# group: DEV # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
spring:
cloud:
nacos:
discovery:
enabled: false
config:
enabled: false
server-addr: 192.168.1.103:18848 # Nacos 服务器地址
username: # Nacos 账号
password: # Nacos 密码
discovery: # 【配置中心】配置项
namespace: dev # 命名空间。这里使用 dev 开发环境
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
metadata:
version: 1.0.0 # 服务实例的版本号,可用于灰度发布
config: # 【注册中心】配置项
namespace: dev # 命名空间。这里使用 dev 开发环境
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
#spring:
# cloud:
# nacos:
# discovery:
# enabled: false
# config:
# enabled: false
--- #################### 数据库相关配置 ####################