2
0
Files
be.wfc/wfc-modules/wfc-user/src/main/resources/application.yml
2025-06-17 18:29:58 +08:00

86 lines
2.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# spring配置
spring:
redis:
host: wfc-redis
port: 6379
password:
thymeleaf:
prefix: file:/opt/wfc/templates/
suffix: .html
cache: false
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:
# mybatis-plus配置
mybatis-plus:
# 搜索指定包别名
type-aliases-package: org.wfc.user
config-location: classpath:mybatis-config.xml
# 配置mapper的扫描找到所有的mapper.xml映射文件
mapper-locations: classpath:mapper/**/*.xml
global-config:
db-config:
logic-delete-field: del_flag
logic-delete-value: 1
logic-not-delete-value: 0
# swagger配置
swagger:
title: 系统模块接口文档
license: Powered By wfc
licenseUrl: https://wfc.vip
# Omada 配置
omada:
omada-url: 'https://192.168.2.249:8043'
omadac-id: 'f3aa6e479b94222581523710cc2c2a9d'
client-id: '5036e77c81a74008821c694a715fe2b8'
client-secret: '29faa06fb7f244b094377b48eb3083a7'
invoice:
path: /opt/wfc/templates
reminder:
trafficEnable: true
trafficThreshold: 10
balanceEnable: true
balanceThreshold: 5
trafficTitle: 'Traffic Reminder'
balanceTitle: 'Balance Reminder'