3.2.0-beta,重构很大:升级springboot2.6.6、spring-cloud-alibaba 2021.1、mybatisplus3.5.1、代码规范部分重构

This commit is contained in:
zhangdaiscott
2022-04-18 09:37:28 +08:00
parent 948e1668b6
commit 9dcff93372
487 changed files with 9754 additions and 2928 deletions

View File

@ -1,7 +1,10 @@
spring:
#升级SpringBoot2.6.6,允许循环依赖
main:
allow-circular-references: true
profiles:
# 当前激活环境
active: @profile.name@
active: '@profile.name@'
cloud:
#配置Bus id(远程推送事件)
bus:
@ -22,12 +25,35 @@ spring:
file-extension: yaml
prefix: @prefix.name@
# 支持多个共享 Data Id 的配置优先级小于extension-configs,自定义 Data Id 配置 属性是个集合,内部由 Config POJO 组成。Config 有 3 个属性,分别是 dataId, group 以及 refresh
#shared-configs[0]:
#data-id: @prefix.name@-common.yaml # 配置文件名-Data Id
#group: @config.group@ # 默认为DEFAULT_GROUP
#refresh: false # 是否动态刷新默认为false
# shared-configs[0]:
# data-id: @prefix.name@-sharding.yaml #分库分表配置
# group: @config.group@
# refresh: false
# shared-configs[1]:
# data-id: @prefix.name@-common.yaml # 配置文件名-Data Id
# group: @config.group@ # 默认为DEFAULT_GROUP
# refresh: false # 是否动态刷新默认为false
discovery:
namespace: @config.namespace@
server-addr: @config.server-addr@
watch:
enabled: false
# feign启用sentinel
feign:
sentinel:
enabled: true
okhttp:
enabled: true
httpclient:
enabled: false
client:
config:
default:
#不设置connectTimeout会导致readTimeout设置不生效
connectTimeout: 5000
readTimeout: 10000
compression:
request:
enabled: true
response:
enabled: true