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
--- #################### 数据库相关配置 ####################

View File

@@ -35,7 +35,6 @@ spring:
server:
port: 48083
logging:
file:
name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径
@@ -96,16 +95,9 @@ msgpush:
title: 推送后台
description: 消息推送的所有功能
version: ${msgpush.info.version}
codegen:
base-package: com.njcn.msgpush
db-schemas: ${spring.datasource.dynamic.datasource.master.name}
front-type: 20 # 前端模版的类型,参见 CodegenFrontTypeEnum 枚举类
vo-type: 10 # VO 的类型,参见 CodegenVOTypeEnum 枚举类
delete-batch-enable: true # 是否生成批量删除接口
unit-test-enable: false # 是否生成单元测试
debug: false
aliyun:
sms:
access-key-id: LTAI4FxsR76x2dq3w9c5puUe