@Configuration @EnableConfigurationProperties(value=KaptchaConfigProperties.class) @ConditionalOnClass(value=com.google.code.kaptcha.impl.DefaultKaptcha.class) @ConditionalOnProperty(name="enable", prefix="agile.kaptcha", matchIfMissing=true) public class KaptchaAutoConfiguration extends Object implements org.springframework.beans.factory.InitializingBean
| 构造器和说明 |
|---|
KaptchaAutoConfiguration(KaptchaConfigProperties kaptchaConfigProperties) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet() |
org.springframework.boot.web.servlet.ServletRegistrationBean<javax.servlet.http.HttpServlet> |
kaptchaServlet() |
org.springframework.boot.web.servlet.ServletRegistrationBean<javax.servlet.http.HttpServlet> |
kaptchaServlet2() |
public KaptchaAutoConfiguration(KaptchaConfigProperties kaptchaConfigProperties)
@Bean public org.springframework.boot.web.servlet.ServletRegistrationBean<javax.servlet.http.HttpServlet> kaptchaServlet()
@ConditionalOnClass(name="org.apache.catalina.servlets.DefaultServlet") @Bean public org.springframework.boot.web.servlet.ServletRegistrationBean<javax.servlet.http.HttpServlet> kaptchaServlet2()
public void afterPropertiesSet()
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanCopyright © 2022. All rights reserved.