Explicitly mention DelegatingWebMvcConfiguration in @EnableWebMvc Javadoc
This commit is contained in:
parent
da04362a5e
commit
c78fd204df
|
@ -59,7 +59,8 @@ import org.springframework.context.annotation.Import;
|
||||||
*
|
*
|
||||||
* <p>If {@link WebMvcConfigurer} does not expose some advanced setting that
|
* <p>If {@link WebMvcConfigurer} does not expose some advanced setting that
|
||||||
* needs to be configured, consider removing the {@code @EnableWebMvc}
|
* needs to be configured, consider removing the {@code @EnableWebMvc}
|
||||||
* annotation and extending directly from {@link WebMvcConfigurationSupport}, e.g.:
|
* annotation and extending directly from {@link WebMvcConfigurationSupport}
|
||||||
|
* or {@link DelegatingWebMvcConfiguration}, e.g.:
|
||||||
*
|
*
|
||||||
* <pre class="code">
|
* <pre class="code">
|
||||||
* @Configuration
|
* @Configuration
|
||||||
|
@ -84,10 +85,12 @@ import org.springframework.context.annotation.Import;
|
||||||
* @since 3.1
|
* @since 3.1
|
||||||
* @see org.springframework.web.servlet.config.annotation.WebMvcConfigurer
|
* @see org.springframework.web.servlet.config.annotation.WebMvcConfigurer
|
||||||
* @see org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
|
* @see org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
|
||||||
|
* @see org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
|
||||||
|
* @see org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration
|
||||||
*/
|
*/
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Target(ElementType.TYPE)
|
@Target(ElementType.TYPE)
|
||||||
@Documented
|
@Documented
|
||||||
@Import({DelegatingWebMvcConfiguration.class})
|
@Import(DelegatingWebMvcConfiguration.class)
|
||||||
public @interface EnableWebMvc {
|
public @interface EnableWebMvc {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue