Commit 073ff310 authored by zhangzhenbang's avatar zhangzhenbang

初始化

parent 2ffef9fe
server:
port: 8888
spring:
# datasource:
# driver-class-name: com.mysql.cj.jdbc.Driver
# url: jdbc:mysql://121.22.111.253/covidnews?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&serverTimezone=UTC
# username: root
# password: 1qaz@WSX
# hikari:
# minimum-idle: 5
# # 连接池最大连接数,默认是10
# maximum-pool-size: 20
# # 空闲连接存活最大时间,默认600000(10分钟)
# idle-timeout: 180000
# # 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认1800000即30分钟
# max-lifetime: 1800000
# # 数据库连接超时时间,默认30秒,即30000
# connection-timeout: 30000
datasource:
druid:
url: jdbc:mysql://121.22.111.253/peking?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC&autoReconnect=true&useSSL=false
username: root
password: 1qaz@WSX
initial-size: 1
min-idle: 1
max-active: 20
test-on-borrow: true
# MySQL 8.x: com.mysql.cj.jdbc.Driver
driver-class-name: com.mysql.cj.jdbc.Driver
mybatis:
configuration:
map-underscore-to-camel-case: true
# ConnectionRequestTimeout:从线程池获取连接的时间
# ConnectTimeout:建立连接的时间
# ReadTimeout:指客户端和服务器建立连接后,客户端从服务器读取数据的timeout
# maxTotal: 连接池最大连接数
# defaultMaxPerRoute: 每个主机的并发
# validateAfterInactivity: 可用空闲连接过期时间,重用空闲连接时会先检查是否空闲时间超过这个时间,如果超过,释放socket重新建立
restTemplate:
connect-config:
connectionRequestTimeout: 2000
connectTimeout: 10000
readTimeout: 11000
connect-pool:
maxTotal: 50
defaultMaxPerRoute: 10000
validateAfterInactivity: 30000
async-Config:
MAX-POOL-SIZE: 50
CORE-POOL-SIZE: 20
auth-url: http://121.22.111.251:9006/yxidauth/v1/auth
isolate-days: 14
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment