yml滑动快
-
server:
port: 8080
#指定滑动验证码类型 滑动:blockpuzzle 点选:clickword
spring:
profiles:
active: blockpuzzle
-
#滑动验证码配置
aj:
captcha:
jigsaw: classpath:images/jigsaw #底图路径,不配置将使用默认图片
cache-type: redis # 缓存local/redis...
cache-number: 1000 # 缓存的阈值,达到这个值,清除缓存
timing-clear: 300 # 定时清除过期缓存(单位秒),设置为0代表不执行
type: blockpuzzle # 验证码类型
water-mark: #水印文字
slip-offset: 5 # 校验滑动拼图允许误差偏移量(默认5像素)
aes-status: true # aes加密坐标开启或者禁用(true|false)
interference-options: 2 # 滑动干扰项(0/1/2)
history-data-clear-enable: true #历史数据是否清除
req-frequency-limit-enable: true # 接口请求次数一分钟限制是否开启 true|false
req-get-lock-limit: 5 # 验证失败5次,get接口锁定
req-get-lock-seconds: 300 # 验证失败后,锁定时间间隔,s
req-get-minute-limit: 20 # get接口一分钟内请求数限制
req-check-minute-limit: 20 # check接口一分钟内请求数限制
# redis配置
spring:
redis:
host: localhost
port: 6379
password:
timeout: 5000 -