From 87bc54fd3805eb60afc6886cdab8018428b03bb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=89=E6=9D=A5=E6=8A=80=E6=9C=AF?= <1490493387@qq.com> Date: Sun, 10 Oct 2021 17:11:18 +0800 Subject: [PATCH] =?UTF-8?q?refactor(CaptchaHandler):=20=E9=87=8D=E5=91=BD?= =?UTF-8?q?=E5=90=8D=E9=AA=8C=E8=AF=81=E7=A0=81handler=E5=92=8Crouter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gateway/kaptcha/{handler => }/KaptchaTextCreator.java | 2 +- .../java/com/youlai/gateway/kaptcha/config/CaptchaConfig.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename youlai-gateway/src/main/java/com/youlai/gateway/kaptcha/{handler => }/KaptchaTextCreator.java (97%) diff --git a/youlai-gateway/src/main/java/com/youlai/gateway/kaptcha/handler/KaptchaTextCreator.java b/youlai-gateway/src/main/java/com/youlai/gateway/kaptcha/KaptchaTextCreator.java similarity index 97% rename from youlai-gateway/src/main/java/com/youlai/gateway/kaptcha/handler/KaptchaTextCreator.java rename to youlai-gateway/src/main/java/com/youlai/gateway/kaptcha/KaptchaTextCreator.java index fce54668b..05c858969 100644 --- a/youlai-gateway/src/main/java/com/youlai/gateway/kaptcha/handler/KaptchaTextCreator.java +++ b/youlai-gateway/src/main/java/com/youlai/gateway/kaptcha/KaptchaTextCreator.java @@ -1,4 +1,4 @@ -package com.youlai.gateway.kaptcha.handler; +package com.youlai.gateway.kaptcha; import com.google.code.kaptcha.text.impl.DefaultTextCreator; diff --git a/youlai-gateway/src/main/java/com/youlai/gateway/kaptcha/config/CaptchaConfig.java b/youlai-gateway/src/main/java/com/youlai/gateway/kaptcha/config/CaptchaConfig.java index 5b9787b54..bce49a68c 100644 --- a/youlai-gateway/src/main/java/com/youlai/gateway/kaptcha/config/CaptchaConfig.java +++ b/youlai-gateway/src/main/java/com/youlai/gateway/kaptcha/config/CaptchaConfig.java @@ -35,7 +35,7 @@ public class CaptchaConfig { // KAPTCHA_SESSION_KEY properties.setProperty("kaptcha.session.key", "kaptchaCodeMath"); // 验证码文本生成器 - properties.setProperty("kaptcha.textproducer.impl", "com.youlai.gateway.kaptcha.handler.KaptchaTextCreator"); + properties.setProperty("kaptcha.textproducer.impl", "com.youlai.gateway.kaptcha.KaptchaTextCreator"); // 验证码文本字符间距 默认为2 properties.setProperty("kaptcha.textproducer.char.space", "3"); // 验证码文本字符长度 默认为5