67 lines
1.8 KiB
YAML
67 lines
1.8 KiB
YAML
# spring配置
|
|
spring:
|
|
redis:
|
|
host: wfc-redis
|
|
port: 6379
|
|
password:
|
|
datasource:
|
|
druid:
|
|
stat-view-servlet:
|
|
enabled: true
|
|
loginUsername: admin
|
|
loginPassword: 123456
|
|
dynamic:
|
|
druid:
|
|
initial-size: 5
|
|
min-idle: 5
|
|
maxActive: 20
|
|
maxWait: 60000
|
|
connectTimeout: 30000
|
|
socketTimeout: 60000
|
|
timeBetweenEvictionRunsMillis: 60000
|
|
minEvictableIdleTimeMillis: 300000
|
|
validationQuery: SELECT 1 FROM DUAL
|
|
testWhileIdle: true
|
|
testOnBorrow: false
|
|
testOnReturn: false
|
|
poolPreparedStatements: true
|
|
maxPoolPreparedStatementPerConnectionSize: 20
|
|
filters: stat,slf4j
|
|
connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
|
|
datasource:
|
|
# 主库数据源
|
|
master:
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
url: jdbc:mysql://wfc-mysql:3306/wfc_user_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
|
username: root
|
|
password: 123456
|
|
# 从库数据源
|
|
# slave:
|
|
# username:
|
|
# password:
|
|
# url:
|
|
# driver-class-name:
|
|
config:
|
|
import: optional:file:/opt/wfc/conf/application-common.yml
|
|
|
|
# mybatis配置
|
|
mybatis:
|
|
# 搜索指定包别名
|
|
typeAliasesPackage: org.wfc.user
|
|
config-location: classpath:mybatis-config.xml
|
|
# 配置mapper的扫描,找到所有的mapper.xml映射文件
|
|
mapperLocations: classpath:mapper/**/*.xml
|
|
|
|
# swagger配置
|
|
swagger:
|
|
title: 系统模块接口文档
|
|
license: Powered By wfc
|
|
licenseUrl: https://wfc.vip
|
|
|
|
reminder:
|
|
trafficEnable: true
|
|
trafficThreshold: 10
|
|
balanceEnable: true
|
|
balanceThreshold: 5
|
|
trafficTitle: 'Traffic Reminder'
|
|
balanceTitle: 'Balance Reminder' |