com.github.yingzhuo.carnival.stateless.captcha.autoconfig.CaptchaFactoryBeanAutoConfig1 Maven / Gradle / Ivy
/*
* ____ _ ____ _ _ _____ ___ _
* / ___| / \ | _ \| \ | |_ _\ \ / / \ | |
* | | / _ \ | |_) | \| || | \ \ / / _ \ | |
* | |___/ ___ \| _ <| |\ || | \ V / ___ \| |___
* \____/_/ \_\_| \_\_| \_|___| \_/_/ \_\_____|
*
* https://github.com/yingzhuo/carnival
*/
package com.github.yingzhuo.carnival.stateless.captcha.autoconfig;
import com.github.yingzhuo.carnival.stateless.captcha.CaptchaDao;
import com.github.yingzhuo.carnival.stateless.captcha.impl.MapCaptchaDao;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Lazy;
/**
* @author 应卓
* @since 1.5.3
*/
@Lazy(false)
@ConditionalOnProperty(prefix = "carnival.stateless-captcha", name = "enabled", havingValue = "true", matchIfMissing = true)
@ConditionalOnMissingClass("org.springframework.data.redis.core.StringRedisTemplate")
@Deprecated
public class CaptchaFactoryBeanAutoConfig1 {
@Bean
@ConditionalOnMissingBean
public CaptchaDao captchaDao() {
return new MapCaptchaDao();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy