Skip to content

Commit ca4eafd

Browse files
committed
SPR-8808 Remove excludeFilter from javadoc examples in @EnableWebMvc.
1 parent f75e832 commit ca4eafd

File tree

1 file changed

+3
-14
lines changed
  • org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/config/annotation

1 file changed

+3
-14
lines changed

org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/config/annotation/EnableWebMvc.java

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@
2727
* <pre class="code">
2828
* &#064;Configuration
2929
* &#064;EnableWebMvc
30-
* &#064;ComponentScan(
31-
* basePackageClasses = { MyConfiguration.class },
32-
* excludeFilters = { @Filter(type = FilterType.ANNOTATION, value = Configuration.class) }
33-
* )
30+
* &#064;ComponentScan(basePackageClasses = { MyConfiguration.class })
3431
* public class MyWebConfiguration {
3532
*
3633
* }
@@ -42,10 +39,7 @@
4239
* <pre class="code">
4340
* &#064;Configuration
4441
* &#064;EnableWebMvc
45-
* &#064;ComponentScan(
46-
* basePackageClasses = { MyConfiguration.class },
47-
* excludeFilters = { @Filter(type = FilterType.ANNOTATION, value = Configuration.class) }
48-
* )
42+
* &#064;ComponentScan(basePackageClasses = { MyConfiguration.class })
4943
* public class MyConfiguration extends WebMvcConfigurerAdapter {
5044
*
5145
* &#064;Override
@@ -59,7 +53,6 @@
5953
* }
6054
*
6155
* // More overridden methods ...
62-
*
6356
* }
6457
* </pre>
6558
*
@@ -70,10 +63,7 @@
7063
*
7164
* <pre class="code">
7265
* &#064;Configuration
73-
* &#064;ComponentScan(
74-
* basePackageClasses = { MyConfiguration.class },
75-
* excludeFilters = { @Filter(type = FilterType.ANNOTATION, value = Configuration.class) }
76-
* )
66+
* &#064;ComponentScan(basePackageClasses = { MyConfiguration.class })
7767
* public class MyConfiguration extends WebMvcConfigurationSupport {
7868
*
7969
* &#064;Override
@@ -86,7 +76,6 @@
8676
* // Create or delegate to "super" to create and
8777
* // customize properties of RequestMapingHandlerAdapter
8878
* }
89-
*
9079
* }
9180
* </pre>
9281
*

0 commit comments

Comments
 (0)