
server:
port: 8086
seeyon:
baseUrl: https://XXXX
restUrl: https://XXX
accountId: 670869647114347
orgAdminRoleId: -xxx
username: xxxx
password: xxxx
oss:
endpoint: http://oss-cn-hongkong-internal.aliyuncs.com
accessKeyId: xxxx
accessKeySecret: xxxx
bucketName: xxxx
rootDirectory: test
spring:
datasource:
druid:
mysql:
name: mysql-test
url: jdbc:mysql://xxxxxxx3306/xxxxxx
username: xxxxx
password: xxxxxxxx
driver-class-name: com.mysql.cj.jdbc.Driver
# 初始化时建立物理连接的个数,初始化发生在显示调用 init 方法,或者第一次 getConnection 时
initial-size: 5
#最小连接池数量
min-idle: 10
#最大连接池数量
max-active: 60
#用来检测连接是否有效的 sql,要求是一个查询语句 如果 validationQuery 为null,testOnBorrow、testOnReturn 、testWhileIdle 都不会起作用
validation-query: select 1
#申请连接时执行 validationQuery 检测连接是否有效,做了这个配置会降低性能
#test-on-borrow: true
#归还连接时执行 validationQuery 检测连接是否有效,做了这个配置会降低性能
#test-while-idle: true
##间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 Destory 线程会检测连接的间隔时间
time-between-eviction-runs-millis: 60000
redis:
host: 127.0.0.1
port: 6379
database: 2
password:
timeout: 5000
swagger:
base-package: com.test
management:
health:
defaults:
enabled: false
feign:
httpclient:
enabled: true
compression:
request:
enabled: true
mime-type: text/xml,application/json
min-request-size: 2048
response:
enabled: true
ribbon:
ConnectTimeout: 60000 # 连接超时时间(ms)
ReadTimeout: 60000 # 通信超时时间(ms)
hystrix:
command:
default:
execution:
isolation:
thread:
timeoutInMillisecond: 50000 # 熔断超时时长:60000ms
|