sa-token:
# token名称 (同时也是cookie名称)
token-name: token
# token有效期,单位s 默认30天, -1代表永不过期
#timeout: 43200
# token临时有效期 (指定时间内无操作就视为token过期) 单位: 秒
activity-timeout: 43200
# 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
is-concurrent: false
# 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
is-share: true
# token风格
token-style: uuid
# 是否输出操作日志
is-log: false
# jwt秘钥
jwt-secret-key: asdasdasifhueuiwyurfewbfjsdafjk
#关闭banner
is-print: false
##Mybatis Plus配置##
mybatis-plus:
mapper-locations: classpath*:/mappers/*Mapper.xml
configuration:
map-underscore-to-camel-case: true
cache-enabled: true
lazy-loading-enabled: true
multiple-result-sets-enabled: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
auto-mapping-behavior: FULL
global-config:
banner: false
db-config:
id-type: auto
table-underline: true
logic-delete-field: isDelete
logicDeleteValue: 1
logicNotDeleteValue: 0
enable-sql-runner: true
type-handlers-package: com.qizhikj.tool.admin.api.handler.typehandler
spring:
application:
name: qztool-admin
##Redis配置##
redis:
# Redis服务器地址
host: ${redis.host:192.168.3.42}
# Redis服务器连接端口
port: 6379
# Redis服务器连接密码(默认为空)
password: ${redis.password:}
# 连接超时时间
timeout: 10s
lettuce:
pool:
# 连接池最大连接数
max-active: 200
# 连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: -1ms
# 连接池中的最大空闲连接
max-idle: 50
# 连接池中的最小空闲连接
min-idle: 10
##数据源配置##
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${mysql.host:192.168.3.42}:${mysql.port:3306}/htgl_1_5?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true
username: ${mysql.username:root}
password: ${mysql.password:root}
druid:
initialSize: 10 #初始化连接数
maxActive: 30 #最大活跃数
maxWait: 10000 #从池中获取连接最大等待时间 ms
testWhileIdle: true #申请连接的时候检测,如果空闲时间大于timeBetweenEvictionRunsMillis,执行validationQuery检测连接是否有效。
timeBetweenEvictionRunsMillis: 60000 #检测间隔ms
minEvictableIdleTimeMillis: 300000 #一个连接在池中最小生存的时间ms
filters: stat,wall,logback
stat-view-servlet:
login-username: root
login-password: 123456
reset-enable: false
url-pattern: /druid/*
enabled: true
allow: #IP白名单
deny: #IP黑名单
web-stat-filter:
url-pattern: /* #过滤规则
exclusions: "*.js,*.jpg,*.gif,*.png,*.css,*.ico,/druid/*"
initialization-mode: always #每次都初始化sql脚本
schema: classpath:/db/htgl_1_5.sql #初始化sql脚本
##定时器配置##
quartz:
#持久化到数据库方式
job-store-type: jdbc
jdbc:
initialize-schema: always #
properties:
org:
quartz:
scheduler:
instanceName: ${spring.application.name}Scheduler
instanceId: AUTO
jobStore:
class: org.quartz.impl.jdbcjobstore.JobStoreTX
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
tablePrefix: qrtz_
isClustered: true
clusterCheckinInterval: 10000
useProperties: false
threadPool:
class: org.quartz.simpl.SimpleThreadPool
threadCount: 10
threadPriority: 5
threadsInheritContextClassLoaderOfInitializingThread: true
logging:
level:
com:
qizhikj:
tool:
admin:
naming: DEBUG
config: classpath:logback.xml
server:
port: 8086
qz:
file:
mapping-url: /api/file/**
bucket-name: C://tour//files/
access-key-id:
access-key-secret:
authorization:
public_key: