application.yml基礎配置
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:

浙公網安備 33010602011771號