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