Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
8fd8a9b6
Commit
8fd8a9b6
authored
Apr 12, 2019
by
Madhura Bhave
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix javadoc
parent
62ec8f37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
ConditionalOnMissingFilterBean.java
...configure/web/servlet/ConditionalOnMissingFilterBean.java
+19
-2
No files found.
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/ConditionalOnMissingFilterBean.java
View file @
8fd8a9b6
...
@@ -33,11 +33,28 @@ import org.springframework.core.annotation.AliasFor;
...
@@ -33,11 +33,28 @@ import org.springframework.core.annotation.AliasFor;
/**
/**
* {@link Conditional} that only matches when no {@link Filter} beans of the specified
* {@link Conditional} that only matches when no {@link Filter} beans of the specified
* type are contained in the {@link BeanFactory}. This condition will detect both directly
* type are contained in the {@link BeanFactory}. This condition will detect both directly
* register {@link Filter} beans as well as those registered via a
* register
ed
{@link Filter} beans as well as those registered via a
* {@link FilterRegistrationBean}.
* {@link FilterRegistrationBean}.
* <p>
* <p>
* When placed on a {@code @Bean} method, the bean class defaults to the return type of
* When placed on a {@code @Bean} method, the bean class defaults to the return type of
* the factory method:
* the factory method or the type of the {@link Filter} if the bean is a
* {@link FilterRegistrationBean}:
*
* <pre class="code">
* @Configuration
* public class MyAutoConfiguration {
*
* @ConditionalOnMissingFilterBean
* @Bean
* public MyFilter myFilter() {
* ...
* }
*
* }</pre>
* <p>
* In the sample above the condition will match if no bean of type {@code MyFilter} or
* {@code FilterRegistrationBean<MyFilter>} is already contained in the
* {@link BeanFactory}.
*
*
* @author Phillip Webb
* @author Phillip Webb
* @since 2.1.0
* @since 2.1.0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment