-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master-jdk21' of https://gitee.com/zhijiantianya/yudao-…
…cloud # Conflicts: # yudao-framework/yudao-spring-boot-starter-captcha/src/main/java/cn/iocoder/yudao/framework/captcha/config/YudaoCaptchaConfiguration.java # yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/framework/captcha/core/RedisCaptchaServiceImpl.java
- Loading branch information
Showing
49 changed files
with
46 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
...ha/src/main/java/cn/iocoder/yudao/framework/captcha/config/YudaoCaptchaConfiguration.java
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
...src/main/java/cn/iocoder/yudao/framework/captcha/core/enums/CaptchaRedisKeyConstants.java
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
...g-boot-starter-captcha/src/main/java/cn/iocoder/yudao/framework/captcha/package-info.java
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...tcha/src/main/resources/META-INF/services/com.xingyuv.captcha.service.CaptchaCacheService
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...esources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...va/cn/iocoder/yudao/module/system/framework/captcha/config/YudaoCaptchaConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package cn.iocoder.yudao.module.system.framework.captcha.config; | ||
|
||
import cn.iocoder.yudao.module.system.framework.captcha.core.RedisCaptchaServiceImpl; | ||
import com.xingyuv.captcha.properties.AjCaptchaProperties; | ||
import com.xingyuv.captcha.service.CaptchaCacheService; | ||
import com.xingyuv.captcha.service.impl.CaptchaServiceFactory; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.data.redis.core.StringRedisTemplate; | ||
|
||
/** | ||
* 验证码的配置类 | ||
* | ||
* @author 芋道源码 | ||
*/ | ||
@Configuration(proxyBeanMethods = false) | ||
public class YudaoCaptchaConfiguration { | ||
|
||
@Bean | ||
public CaptchaCacheService captchaCacheService(AjCaptchaProperties config, | ||
StringRedisTemplate stringRedisTemplate) { | ||
CaptchaCacheService captchaCacheService = CaptchaServiceFactory.getCache(config.getCacheType().name()); | ||
if (captchaCacheService instanceof RedisCaptchaServiceImpl) { | ||
((RedisCaptchaServiceImpl) captchaCacheService).setStringRedisTemplate(stringRedisTemplate); | ||
} | ||
return captchaCacheService; | ||
} | ||
|
||
} |
14 changes: 3 additions & 11 deletions
14
...core/service/RedisCaptchaServiceImpl.java → ...captcha/core/RedisCaptchaServiceImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...stem-biz/src/main/java/cn/iocoder/yudao/module/system/framework/captcha/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* 验证码拓展 | ||
* | ||
* 基于 aj-captcha 实现滑块验证码,文档:https://ajcaptcha.beliefteam.cn/captcha-doc/ | ||
* | ||
* @author 星语 | ||
*/ | ||
package cn.iocoder.yudao.module.system.framework.captcha; |
1 change: 1 addition & 0 deletions
1
...-biz/src/main/resources/META-INF/services/com.xingyuv.captcha.service.CaptchaCacheService
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cn.iocoder.yudao.module.system.framework.captcha.core.RedisCaptchaServiceImpl |
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters