Explicitly mention DelegatingWebMvcConfiguration in @EnableWebMvc Javadoc

This commit is contained in:
Sam Brannen 2014-11-03 17:42:17 +01:00
parent da04362a5e
commit c78fd204df
1 changed files with 5 additions and 2 deletions

View File

@ -59,7 +59,8 @@ import org.springframework.context.annotation.Import;
*
* <p>If {@link WebMvcConfigurer} does not expose some advanced setting that
* 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">
* &#064;Configuration
@ -84,10 +85,12 @@ import org.springframework.context.annotation.Import;
* @since 3.1
* @see org.springframework.web.servlet.config.annotation.WebMvcConfigurer
* @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)
@Target(ElementType.TYPE)
@Documented
@Import({DelegatingWebMvcConfiguration.class})
@Import(DelegatingWebMvcConfiguration.class)
public @interface EnableWebMvc {
}