Annotation Type ConditionalOnMissingFilterBean
@Target({TYPE,METHOD}) @Retention(RUNTIME) @Documented @ConditionalOnMissingBean(parameterizedContainer=org.springframework.boot.web.servlet.FilterRegistrationBean.class) public @interface ConditionalOnMissingFilterBean
Conditional
that only matches when noFilter
beans of the specified type are contained in theBeanFactory
. This condition will detect both directly registerFilter
beans as well as those registered via aFilterRegistrationBean
.When placed on a
@Bean
method, the bean class defaults to the return type of the factory method:- Since:
- 2.1.0
Element Detail
value
@AliasFor(annotation=ConditionalOnMissingBean.class) Class<? extends javax.servlet.Filter>[] value
The filter bean type that must not be present.- Returns:
- the bean type
- Default:
- {}