spring:
|
datasource:
|
type: com.alibaba.druid.pool.DruidDataSource
|
driver-class-name: com.mysql.jdbc.Driver
|
#-Test-
|
# url: jdbc:mysql://192.168.0.200:3306/ledger?serverTimezone=Asia/Shanghai&prepStmtCacheSize=517&cachePrepStmts=true&autoReconnect=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
|
# username: root
|
# password: cn.FLIGHTFEATHER
|
|
# url: jdbc:mysql://localhost:3306/ledger?serverTimezone=Asia/Shanghai&prepStmtCacheSize=517&cachePrepStmts=true&autoReconnect=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
|
# username: root
|
# password: 123456
|
#-TestEnd-
|
|
url: jdbc:mysql://localhost:3306/ledger?serverTimezone=Asia/Shanghai&prepStmtCacheSize=517&cachePrepStmts=true&autoReconnect=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
|
username: ledger
|
password: ledger_fxxchackxr
|
|
# 开发远程服务器
|
# url: jdbc:mysql://47.100.191.150:3306/ledger?serverTimezone=Asia/Shanghai&prepStmtCacheSize=517&cachePrepStmts=true&autoReconnect=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
|
# username: remoteU1
|
# password: eSoF8DnzfGTlhAjE
|
|
initialSize: 5
|
minIdle: 5
|
maxWait: 60000
|
timeBetweenEvictionRunsMillis: 60000
|
minEvictableIdleTimeMillis: 300000
|
validationQuery: SELECT 1 FROM DUAL
|
testWhileIdle: true
|
testOnBorrow: false~
|
testOnReturn: false
|
poolPreparedStatements: true
|
maxPoolPreparedStatementPerConnectionSize: 20
|
filters: stat,wall,log4j2
|
connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
|
useGlobalDataSourceStat: true
|
|
#thymeleaf设置不缓存
|
thymeleaf:
|
cache: false
|
|
|
#文件上传限制
|
servlet:
|
multipart:
|
max-file-size: 25MB
|
max-request-size: 100MB
|
|
#Jackson时间编码设置
|
jackson:
|
time-zone: GMT+8
|
|
profiles:
|
active: pro
|
|
jmx:
|
default-domain: ledger
|
|
# mybatis 配置
|
mybatis:
|
type-aliases-package: cn.flightfeather.supervision.domain.entity
|
mapper-locations: classpath*:mapper/*.xml
|
|
## 通用 Mapper 配置
|
#mappers 多个接口时逗号隔开
|
mapper:
|
mappers: cn.flightfeather.supervision.domain.util.MyMapper
|
not-empty: false
|
identity: MYSQL
|
|
#logging路径设置
|
logging:
|
config: classpath:log4j2.xml
|
|
#springfox:
|
# documentation:
|
# swagger:
|
# v2:
|
# enabled: true
|
# Swagger json url address
|
# etc. https://petstore.swagger.io/
|
swagger.url: http://localhost:8080/v3/swagger.json
|