mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-14 05:42:06 +08:00
1、依赖升级:springboot 2.7.18 -> 3.4.5,springcloud 2021.x -> 2024.x ,其余包同步yudao升级;2、微服务配置简化;
This commit is contained in:
@@ -1,3 +1,20 @@
|
||||
--- #################### 注册中心 + 配置中心相关配置 ####################
|
||||
|
||||
spring:
|
||||
cloud:
|
||||
nacos:
|
||||
server-addr: 192.168.1.205:8848 # 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:
|
||||
# 数据源配置项
|
||||
@@ -87,8 +104,48 @@ spring:
|
||||
|
||||
# 晨丰配置项,设置当前项目所有自定义的配置
|
||||
chenfeng:
|
||||
dynamicDataSource:
|
||||
enabled: true
|
||||
info:
|
||||
version: 1.0.0
|
||||
base-package: com.cf.imes.module.report
|
||||
web:
|
||||
admin-ui:
|
||||
url: http://dashboard.cf.iocoder.cn # Admin 管理后台 UI 的地址
|
||||
swagger:
|
||||
title: 管理后台
|
||||
description: 提供管理员管理的所有功能
|
||||
version: ${chenfeng.info.version}
|
||||
base-package: ${chenfeng.info.base-package}
|
||||
error-code: # 错误码相关配置项
|
||||
constants-class-list:
|
||||
- com.cf.imes.module.report.enums.ErrorCodeConstants
|
||||
organ: # 多租户相关配置项
|
||||
enable: true
|
||||
ignore-tables:
|
||||
|
||||
xss:
|
||||
enable: false
|
||||
exclude-urls: # 如下两个 url,仅仅是为了演示,去掉配置也没关系
|
||||
- ${spring.boot.admin.context-path}/** # 不处理 Spring Boot Admin 的请求
|
||||
- ${management.endpoints.web.base-path}/** # 不处理 Actuator 的请求
|
||||
encrypt:
|
||||
enable: false
|
||||
publicKey: cfimes
|
||||
report:
|
||||
tenant-table-names:
|
||||
- system_dept
|
||||
- system_user
|
||||
- system_organization
|
||||
- order_body
|
||||
- order_goods
|
||||
- order_group
|
||||
- order_item
|
||||
- order_parts
|
||||
- order_plan
|
||||
- order_plan_item
|
||||
- order_plate
|
||||
- order_prepackaged
|
||||
- order_remain_plate
|
||||
- orders
|
||||
- plate
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
--- #################### 注册中心 + 配置中心相关配置 ####################
|
||||
|
||||
spring:
|
||||
cloud:
|
||||
nacos:
|
||||
server-addr: 127.0.0.1:8848 # Nacos 服务器地址
|
||||
username: # Nacos 账号
|
||||
password: # Nacos 密码
|
||||
discovery: # 【配置中心】配置项
|
||||
namespace: # 命名空间。这里使用 dev 开发环境
|
||||
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
|
||||
metadata:
|
||||
version: 1.0.0 # 服务实例的版本号,可用于灰度发布
|
||||
config: # 【注册中心】配置项
|
||||
namespace: # 命名空间。这里使用 dev 开发环境
|
||||
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
|
||||
|
||||
--- #################### 数据库相关配置 ####################
|
||||
spring:
|
||||
|
||||
@@ -100,6 +117,27 @@ logging:
|
||||
|
||||
# 晨丰配置项,设置当前项目所有自定义的配置
|
||||
chenfeng:
|
||||
dynamicDataSource:
|
||||
enabled: true
|
||||
info:
|
||||
version: 1.0.0
|
||||
base-package: com.cf.imes.module.report
|
||||
web:
|
||||
admin-ui:
|
||||
url: http://dashboard.cf.iocoder.cn # Admin 管理后台 UI 的地址
|
||||
swagger:
|
||||
title: 管理后台
|
||||
description: 提供管理员管理的所有功能
|
||||
version: ${chenfeng.info.version}
|
||||
base-package: ${chenfeng.info.base-package}
|
||||
error-code: # 错误码相关配置项
|
||||
enable: false
|
||||
constants-class-list:
|
||||
- com.cf.imes.module.report.enums.ErrorCodeConstants
|
||||
organ: # 多租户相关配置项
|
||||
enable: true
|
||||
ignore-tables:
|
||||
|
||||
env: # 多环境的配置项
|
||||
tag: ${HOSTNAME}
|
||||
security:
|
||||
@@ -111,5 +149,23 @@ chenfeng:
|
||||
- ${management.endpoints.web.base-path}/** # 不处理 Actuator 的请求
|
||||
access-log: # 访问日志的配置项
|
||||
enable: false
|
||||
error-code: # 错误码相关配置项
|
||||
enable: false
|
||||
encrypt:
|
||||
enable: false
|
||||
publicKey: cfimes
|
||||
report:
|
||||
tenant-table-names:
|
||||
- system_dept
|
||||
- system_user
|
||||
- system_organization
|
||||
- order_body
|
||||
- order_goods
|
||||
- order_group
|
||||
- order_item
|
||||
- order_parts
|
||||
- order_plan
|
||||
- order_plan_item
|
||||
- order_plate
|
||||
- order_prepackaged
|
||||
- order_remain_plate
|
||||
- orders
|
||||
- plate
|
||||
@@ -1,4 +1,14 @@
|
||||
--- #################### 注册中心 + 配置中心相关配置 ####################
|
||||
|
||||
spring:
|
||||
main:
|
||||
allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。
|
||||
allow-bean-definition-overriding: true # 允许 Bean 覆盖,例如说 Feign 等会存在重复定义的服务
|
||||
cloud:
|
||||
nacos:
|
||||
server-addr: 192.168.1.204:8848 # Nacos 服务器地址
|
||||
username: nacos # Nacos 账号
|
||||
password: nacos # Nacos 密码
|
||||
discovery: # 【配置中心】配置项
|
||||
namespace: imes-test # 命名空间。这里使用 dev 开发环境
|
||||
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
|
||||
config: # 【注册中心】配置项
|
||||
namespace: imes-test # 命名空间。这里使用 dev 开发环境
|
||||
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
|
||||
@@ -1,8 +1,19 @@
|
||||
spring:
|
||||
application:
|
||||
name: report-server
|
||||
|
||||
profiles:
|
||||
active: test
|
||||
|
||||
main:
|
||||
allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。
|
||||
allow-bean-definition-overriding: true # 允许 Bean 覆盖,例如说 Feign 等会存在重复定义的服务
|
||||
|
||||
config:
|
||||
import:
|
||||
- optional:classpath:application-${spring.profiles.active}.yaml # 加载【本地】配置
|
||||
- optional:nacos:${spring.application.name}-${spring.profiles.active}.yaml # 加载【Nacos】的配置
|
||||
|
||||
# Servlet 配置
|
||||
servlet:
|
||||
# 文件上传相关配置项
|
||||
@@ -72,56 +83,7 @@ spring:
|
||||
repositories:
|
||||
enabled: false # 项目未使用到 Spring Data Redis 的 Repository,所以直接禁用,保证启动速度
|
||||
|
||||
--- #################### RPC 远程调用相关配置 ####################
|
||||
|
||||
--- #################### MQ 消息队列相关配置 ####################
|
||||
|
||||
--- #################### 定时任务相关配置 ####################
|
||||
|
||||
# 积木报表配置
|
||||
jeecg:
|
||||
jmreport:
|
||||
saas-mode: organ
|
||||
|
||||
--- #################### 晨丰相关配置 ####################
|
||||
|
||||
chenfeng:
|
||||
dynamicDataSource:
|
||||
enabled: true
|
||||
info:
|
||||
version: 1.0.0
|
||||
base-package: com.cf.imes.module.report
|
||||
web:
|
||||
admin-ui:
|
||||
url: http://dashboard.cf.iocoder.cn # Admin 管理后台 UI 的地址
|
||||
swagger:
|
||||
title: 管理后台
|
||||
description: 提供管理员管理的所有功能
|
||||
version: ${chenfeng.info.version}
|
||||
base-package: ${chenfeng.info.base-package}
|
||||
error-code: # 错误码相关配置项
|
||||
constants-class-list:
|
||||
- com.cf.imes.module.report.enums.ErrorCodeConstants
|
||||
organ: # 多租户相关配置项
|
||||
enable: true
|
||||
ignore-tables:
|
||||
encrypt:
|
||||
enable: false
|
||||
publicKey: cfimes
|
||||
report:
|
||||
tenant-table-names:
|
||||
- system_dept
|
||||
- system_user
|
||||
- system_organization
|
||||
- order_body
|
||||
- order_goods
|
||||
- order_group
|
||||
- order_item
|
||||
- order_parts
|
||||
- order_plan
|
||||
- order_plan_item
|
||||
- order_plate
|
||||
- order_prepackaged
|
||||
- order_remain_plate
|
||||
- orders
|
||||
- plate
|
||||
saas-mode: organ
|
||||
@@ -1,25 +0,0 @@
|
||||
--- #################### 注册中心相关配置 ####################
|
||||
|
||||
spring:
|
||||
cloud:
|
||||
nacos:
|
||||
server-addr: 192.168.1.205:8848
|
||||
username: nacos
|
||||
password: nacos
|
||||
discovery:
|
||||
#namespace: dev # 命名空间。这里使用 dev 开发环境
|
||||
metadata:
|
||||
version: 1.0.0 # 服务实例的版本号,可用于灰度发布
|
||||
|
||||
--- #################### 配置中心相关配置 ####################
|
||||
|
||||
spring:
|
||||
cloud:
|
||||
nacos:
|
||||
# Nacos Config 配置项,对应 NacosConfigProperties 配置属性类
|
||||
config:
|
||||
server-addr: 192.168.1.205:8848 # Nacos 服务器地址
|
||||
namespace: dev # 命名空间 dev 的ID,不能直接使用 dev 名称。创建命名空间的时候需要指定ID为 dev,这里使用 dev 开发环境
|
||||
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
|
||||
name: ${spring.application.name} # 使用的 Nacos 配置集的 dataId,默认为 spring.application.name
|
||||
file-extension: yaml # 使用的 Nacos 配置集的 dataId 的文件拓展名,同时也是 Nacos 配置集的配置格式,默认为 properties
|
||||
@@ -1,23 +0,0 @@
|
||||
--- #################### 注册中心相关配置 ####################
|
||||
|
||||
spring:
|
||||
cloud:
|
||||
nacos:
|
||||
server-addr: 127.0.0.1:8848
|
||||
discovery:
|
||||
#namespace: dev # 命名空间。这里使用 dev 开发环境
|
||||
metadata:
|
||||
version: 1.0.0 # 服务实例的版本号,可用于灰度发布
|
||||
|
||||
--- #################### 配置中心相关配置 ####################
|
||||
|
||||
spring:
|
||||
cloud:
|
||||
nacos:
|
||||
# Nacos Config 配置项,对应 NacosConfigProperties 配置属性类
|
||||
config:
|
||||
server-addr: 127.0.0.1:8848 # Nacos 服务器地址
|
||||
namespace: dev # 命名空间 dev 的ID,不能直接使用 dev 名称。创建命名空间的时候需要指定ID为 dev,这里使用 dev 开发环境
|
||||
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
|
||||
name: ${spring.application.name} # 使用的 Nacos 配置集的 dataId,默认为 spring.application.name
|
||||
file-extension: yaml # 使用的 Nacos 配置集的 dataId 的文件拓展名,同时也是 Nacos 配置集的配置格式,默认为 properties
|
||||
@@ -1,25 +0,0 @@
|
||||
--- #################### 注册中心相关配置 ####################
|
||||
|
||||
spring:
|
||||
cloud:
|
||||
nacos:
|
||||
server-addr: 192.168.1.204:8848
|
||||
username: nacos
|
||||
password: nacos
|
||||
discovery:
|
||||
namespace: imes-test # 命名空间。这里使用 dev 开发环境
|
||||
metadata:
|
||||
version: 1.0.0 # 服务实例的版本号,可用于灰度发布
|
||||
|
||||
--- #################### 配置中心相关配置 ####################
|
||||
|
||||
spring:
|
||||
cloud:
|
||||
nacos:
|
||||
# Nacos Config 配置项,对应 NacosConfigProperties 配置属性类
|
||||
config:
|
||||
server-addr: 192.168.1.204:8848 # Nacos 服务器地址
|
||||
namespace: imes-test # 命名空间 dev 的ID,不能直接使用 dev 名称。创建命名空间的时候需要指定ID为 dev,这里使用 dev 开发环境
|
||||
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
|
||||
name: ${spring.application.name} # 使用的 Nacos 配置集的 dataId,默认为 spring.application.name
|
||||
file-extension: yaml # 使用的 Nacos 配置集的 dataId 的文件拓展名,同时也是 Nacos 配置集的配置格式,默认为 properties
|
||||
@@ -1,14 +0,0 @@
|
||||
spring:
|
||||
application:
|
||||
name: report-server
|
||||
|
||||
profiles:
|
||||
active: local
|
||||
|
||||
server:
|
||||
port: 48086
|
||||
|
||||
# 日志文件配置。注意,如果 logging.file.name 不放在 bootstrap.yaml 配置文件,而是放在 application.yaml 中,会导致出现 LOG_FILE_IS_UNDEFINED 文件
|
||||
logging:
|
||||
file:
|
||||
name: ${user.home}/logs/${spring.application.name} # 日志文件名,全路径
|
||||
BIN
Binary file not shown.
Reference in New Issue
Block a user