1. 清理工程结构
2. 优化环境配置结构,使用 maven profile 简化个人配置与发布配置切换 3. 修复代码生成器生成菜单 sql 为携带分布式 Id 的错误
This commit is contained in:
@@ -3,12 +3,12 @@
|
||||
spring:
|
||||
cloud:
|
||||
nacos:
|
||||
server-addr: yudao-nacos:8848 # Nacos 服务器地址
|
||||
server-addr: 172.16.46.63:30848 # Nacos 服务器地址
|
||||
username: # Nacos 账号
|
||||
password: # Nacos 密码
|
||||
discovery: # 【配置中心】配置项
|
||||
namespace: dev # 命名空间。这里使用 dev 开发环境
|
||||
namespace: ${namespace.name} # 命名空间。这里使用 maven Profile 资源过滤进行动态替换
|
||||
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
|
||||
config: # 【注册中心】配置项
|
||||
namespace: dev # 命名空间。这里使用 dev 开发环境
|
||||
namespace: ${namespace.name} # 命名空间。这里使用 maven Profile 资源过滤进行动态替换
|
||||
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
|
||||
@@ -7,12 +7,12 @@ spring:
|
||||
username: # Nacos 账号
|
||||
password: # Nacos 密码
|
||||
discovery: # 【配置中心】配置项
|
||||
namespace: local # 命名空间。这里使用 dev 开发环境
|
||||
namespace: ${namespace.name} # 命名空间。这里使用 maven Profile 资源过滤进行动态替换
|
||||
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
|
||||
metadata:
|
||||
version: 1.0.0 # 服务实例的版本号,可用于灰度发布
|
||||
config: # 【注册中心】配置项
|
||||
namespace: local # 命名空间。这里使用 dev 开发环境
|
||||
namespace: ${namespace.name} # 命名空间。这里使用 maven Profile 资源过滤进行动态替换
|
||||
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
|
||||
|
||||
# 日志文件配置
|
||||
|
||||
@@ -3,7 +3,7 @@ spring:
|
||||
name: gateway-server
|
||||
|
||||
profiles:
|
||||
active: dev
|
||||
active: ${env.name}
|
||||
|
||||
codec:
|
||||
max-in-memory-size: 10MB # 调整缓冲区大小https://gitee.com/zhijiantianya/yudao-cloud/pulls/176
|
||||
|
||||
Reference in New Issue
Block a user