You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
2.7 KiB
82 lines
2.7 KiB
spring:
|
|
profiles:
|
|
#active: dev #开发环境
|
|
# active: test #测试环境5
|
|
active: jc-dev
|
|
# active: prod #生产环境
|
|
application:
|
|
name: gather
|
|
|
|
devtools:
|
|
restart:
|
|
log-condition-evaluation-delta: false
|
|
security:
|
|
user:
|
|
name: admin
|
|
password: admin
|
|
servlet:
|
|
multipart:
|
|
max-file-size: 500MB
|
|
max-request-size: 500MB
|
|
jackson:
|
|
date-format: yyyy-MM-dd
|
|
time-zone: GMT+8
|
|
default-property-inclusion: non_null
|
|
mybatis-plus:
|
|
mapper-locations: classpath:mapper/*Mapper.xml
|
|
type-aliases-package: com.xr.device
|
|
# 在查询语句的是否,对Map或者是entity进行映射赋值的时候null也进行映射。默认false,不进行映射
|
|
configuration:
|
|
map-underscore-to-camel-case: true
|
|
call-setters-on-nulls: true
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
# 设置更新或者修改的时候的策略,不进行校验,否则如果是null则不会进行更新或者插入,当然在@TableField注解进行指定单个字段
|
|
global-config:
|
|
db-config:
|
|
insert-strategy: ignored
|
|
update-strategy: ignored
|
|
logging:
|
|
level:
|
|
root: info
|
|
com.xr: debug
|
|
org:
|
|
springframework:
|
|
boot:
|
|
autoconfigure: error
|
|
|
|
### Ribbon 配置
|
|
ribbon:
|
|
# 连接超时
|
|
ConnectTimeout: 100000
|
|
# 响应超时
|
|
ReadTimeout: 100000
|
|
### Feign 配置
|
|
feign:
|
|
# 开启断路器(熔断器)
|
|
hystrix:
|
|
enabled: true
|
|
### Hystrix 配置
|
|
hystrix:
|
|
# 这样将会自动配置一个 Hystrix 并发策略插件的 hook,这个 hook 会将 SecurityContext 从主线程传输到 Hystrix 的命令。
|
|
# 因为 Hystrix 不允许注册多个 Hystrix 策略,所以可以声明 HystrixConcurrencyStrategy
|
|
# 为一个 Spring bean 来实现扩展。Spring Cloud 会在 Spring 的上下文中查找你的实现,并将其包装在自己的插件中。
|
|
shareSecurityContext: true
|
|
command:
|
|
default:
|
|
circuitBreaker:
|
|
# 当在配置时间窗口内达到此数量的失败后,进行短路。默认20个
|
|
requestVolumeThreshold: 100
|
|
# 触发短路的时间值,当该值设为5000时,则当触发 circuit break 后的5000毫秒内都会拒绝request
|
|
# 也就是5000毫秒后才会关闭circuit。默认5000
|
|
sleepWindowInMilliseconds: 5000
|
|
# 强制打开熔断器,如果打开这个开关,那么拒绝所有request,默认false
|
|
forceOpen: false
|
|
# 强制关闭熔断器 如果这个开关打开,circuit将一直关闭且忽略,默认false
|
|
forceClosed: false
|
|
execution:
|
|
isolation:
|
|
thread:
|
|
# 熔断器超时时间,默认:1000/毫秒
|
|
timeoutInMilliseconds: 20000
|
|
|
|
|
|
|