This commit is contained in:
caozehui
2026-02-10 15:27:28 +08:00
parent 3f65a55c15
commit 1219b30f43
52 changed files with 1408 additions and 22 deletions

View File

@@ -1,23 +1,30 @@
--- #################### 注册中心 + 配置中心相关配置 ####################
#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:
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
discovery:
enabled: false
config:
enabled: false
--- #################### 数据库相关配置 ####################
spring:
# 数据源配置项
autoconfigure:
exclude: