【修改】代码格式调整
This commit is contained in:
parent
2518ebc4f6
commit
02425e4729
@ -1,18 +1,17 @@
|
||||
package com.cn.xiaonuo.sys.provider;
|
||||
package com.cn.xiaonuo.sys.core.provider;
|
||||
|
||||
import com.anji.captcha.service.CaptchaCacheService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.data.redis.core.StringRedisTemplate;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
/**
|
||||
* @ClassName CaptchaCacheServiceProvider
|
||||
* @Description 对于分布式部署的应用,我们建议应用自己实现CaptchaCacheService,比如用Redis
|
||||
* 对于分布式部署的应用,我们建议应用自己实现CaptchaCacheService,比如用Redis
|
||||
* 如果应用是单点的,也没有使用redis,那默认使用内存。内存缓存只适合单节点部署的应用,否则验证码生产与验证在节点之间信息不同步,导致失败
|
||||
*
|
||||
* @Author Jax
|
||||
* @Date 2021/1/21 16:27
|
||||
**/
|
||||
* @date 2021/1/21 16:27
|
||||
*/
|
||||
public class CaptchaCacheServiceProvider implements CaptchaCacheService {
|
||||
|
||||
private static final String REDIS = "redis";
|
Loading…
x
Reference in New Issue
Block a user