Explicitly mention DelegatingWebMvcConfiguration in @EnableWebMvc Javadoc

master
Sam Brannen 10 years ago
parent da04362a5e
commit c78fd204df
  1. 7
      spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/EnableWebMvc.java

@ -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">
* &#064;Configuration * &#064;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…
Cancel
Save