From b9a5f61a8a07069989193273fe8854e3ac158253 Mon Sep 17 00:00:00 2001 From: ZouLiFu Date: Sat, 20 Feb 2021 11:46:01 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=9B=B4=E6=96=B0jar=20groupId=202.=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E9=AA=8C=E8=AF=81=E7=A0=81=E6=8E=A5=E5=8F=A3=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xiaonuo-base/xiaonuo-system/pom.xml | 6 +++--- xiaonuo-main/src/main/resources/application.yml | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/xiaonuo-base/xiaonuo-system/pom.xml b/xiaonuo-base/xiaonuo-system/pom.xml index 6945e897..b92014af 100644 --- a/xiaonuo-base/xiaonuo-system/pom.xml +++ b/xiaonuo-base/xiaonuo-system/pom.xml @@ -88,9 +88,9 @@ - com.github.anji-plus - captcha-spring-boot-starter - 1.2.6 + com.anji-plus + spring-boot-starter-captcha + 1.2.8 diff --git a/xiaonuo-main/src/main/resources/application.yml b/xiaonuo-main/src/main/resources/application.yml index 23de96bc..24c2688a 100644 --- a/xiaonuo-main/src/main/resources/application.yml +++ b/xiaonuo-main/src/main/resources/application.yml @@ -66,3 +66,9 @@ aj: cache-type: local #分布式部署需要 自己实现CaptchaCacheService 使用redis需要配置redis相关配置 type: clickword #验证码类型 为点选 blockPuzzle 为滑块验证码 font-type: 宋体 + req-frequency-limit-enable: true #接口请求次数一分钟限制是否开启 true|false + req-get-lock-limit: 2 # 验证失败2次,get接口锁定 + req-get-lock-seconds: 10 # 验证失败后,锁定时间间隔,s + req-get-minute-limit: 30 # get接口一分钟内请求数限制 + req-check-minute-limit: 60 # check接口一分钟内请求数限制 + req-verify-minute-limit: 60 # verify接口一分钟内请求数限制