All Downloads are FREE. Search and download functionalities are using the official Maven repository.

spring.turbo.module.misc.autoconfiguration.CaptchaSupportAutoConfiguration Maven / Gradle / Ivy

There is a newer version: 3.4.0
Show newest version
package spring.turbo.module.misc.autoconfiguration;

import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import spring.turbo.module.misc.captcha.support.AccessKeyGenerator;
import spring.turbo.module.misc.captcha.support.SimpleAccessKeyGenerator;

/**
 * @author 应卓
 * @since 1.3.0
 */
@AutoConfiguration
@ConditionalOnMissingBean(AccessKeyGenerator.class)
public class CaptchaSupportAutoConfiguration {

    @Bean
    public AccessKeyGenerator captchaAccessKeyGenerator() {
        return new SimpleAccessKeyGenerator();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy