server:
|
port: 8086
|
spring:
|
datasource:
|
url: jdbc:mysql://127.0.0.1:3306/trading_order_817?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&serverTimezone=Europe/Paris&useLegacyDatetimeCode=false
|
username: root
|
password: 123456
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
type: com.zaxxer.hikari.HikariDataSource
|
hikari:
|
minimum-idle: 5
|
maximum-pool-size: 20
|
idle-timeout: 30000 # 增加空闲超时
|
validation-timeout: 3000 # 设置连接验证超时
|
auto-commit: true
|
connection-test-query: SELECT 1
|
jpa:
|
properties:
|
hibernate:
|
jdbc:
|
time_zone: Europe/Paris
|
jackson:
|
time-zone: Europe/Paris
|
cache:
|
type: redis
|
redis:
|
cache-null-values: true
|
redis:
|
redisson:
|
config: classpath:redisson/redisson-local.yml
|
host: localhost
|
port: 6379
|
password:
|
logging:
|
config: classpath:logback/logback-local.xml
|
|
jetcache:
|
statIntervalMinutes: 1
|
default: # 默认default,可以配置更多的area
|
type: linkedhashmap # 已支持可选:linkedhashmap、caffeine
|
keyConvertor: fastjson # key转换器
|
remote:
|
default:
|
# 缓存类型。tair、redis为当前支持的远程缓存
|
type: redis
|
keyConvertor: fastjson
|
# 采用Java序列化存储
|
valueEncoder: java
|
valueDecoder: java
|
poolConfig:
|
minIdle: 5
|
maxIdle: 20
|
maxTotal: 50
|
host: 127.0.0.1
|
port: 6379
|
# password: xJjSHKNYbJXzWTim
|