public class RedisCacheSliderCaptchaApplication extends AbstractSliderCaptchaApplication
prop| 构造器和说明 |
|---|
RedisCacheSliderCaptchaApplication(org.springframework.data.redis.core.StringRedisTemplate redisTemplate,
cloud.tianai.captcha.template.slider.SliderCaptchaTemplate template,
SliderCaptchaProperties prop) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
cacheVerification(String id,
Float xPercent)
缓存验证码
|
protected Float |
getPercentForCache(String id)
通过缓存获取百分比
|
static void |
main(String[] args) |
generateSliderCaptcha, generatorId, getSliderCaptchaResourceManager, matchingpublic RedisCacheSliderCaptchaApplication(org.springframework.data.redis.core.StringRedisTemplate redisTemplate,
cloud.tianai.captcha.template.slider.SliderCaptchaTemplate template,
SliderCaptchaProperties prop)
protected Float getPercentForCache(String id)
AbstractSliderCaptchaApplicationgetPercentForCache 在类中 AbstractSliderCaptchaApplicationid - 验证码IDprotected void cacheVerification(String id, Float xPercent)
AbstractSliderCaptchaApplicationcacheVerification 在类中 AbstractSliderCaptchaApplicationid - idxPercent - ID对应的百分比public static void main(String[] args)
Copyright © 2022. All rights reserved.