@Configuration @ConditionalOnClass(value=com.google.code.kaptcha.impl.DefaultKaptcha.class) @ConditionalOnWebApplication @EnableConfigurationProperties(value=KaptchaProperties.class) protected static class FrameworkMvcConfiguration.KaptchaConfiguration extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
FrameworkMvcConfiguration.KaptchaConfiguration.CaptchaController |
| Modifier | Constructor and Description |
|---|---|
protected |
KaptchaConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
ICaptchaService |
captchaService(javax.servlet.http.HttpSession httpSession,
KaptchaProperties kaptchaProperties) |
com.google.code.kaptcha.impl.DefaultKaptcha |
kaptcha(KaptchaProperties kaptchaProperties) |
@Bean @ConditionalOnMissingBean(value=com.google.code.kaptcha.Producer.class) public com.google.code.kaptcha.impl.DefaultKaptcha kaptcha(KaptchaProperties kaptchaProperties)
@Bean @ConditionalOnMissingBean(value=ICaptchaService.class) public ICaptchaService captchaService(@Autowired(required=false) javax.servlet.http.HttpSession httpSession, KaptchaProperties kaptchaProperties)