Skip to content

Commit 61ec8fd

Browse files
committed
Polish
1 parent 2e75adb commit 61ec8fd

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupport.java

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -149,17 +149,6 @@
149149
* libraries available on the classpath.
150150
* </ul>
151151
*
152-
* <p>When extending directly from this class instead of using
153-
* {@link EnableWebMvc @EnableWebMvc}, an extra step is needed if you want to use Tiles, FreeMarker
154-
* or Velocity view resolution configuration. Since view configurer beans are registered in their own
155-
* {@link org.springframework.web.servlet.config.annotation.TilesConfigurerConfigurationSupport}
156-
* and {@link org.springframework.web.servlet.config.annotation.VelocityConfigurerConfigurationSupport}
157-
* classes, you should also extend those configuration classes (only the ones
158-
* related to the view technology you are using), or register your own
159-
* {@link org.springframework.web.servlet.view.tiles3.TilesConfigurer},
160-
* {@link org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer} or
161-
* {@link org.springframework.web.servlet.view.velocity.VelocityConfigurer} beans.
162-
*
163152
* @see EnableWebMvc
164153
* @see WebMvcConfigurer
165154
* @see WebMvcConfigurerAdapter
@@ -783,9 +772,14 @@ protected final void addDefaultHandlerExceptionResolvers(List<HandlerExceptionRe
783772
}
784773

785774
/**
786-
* Register a {@link org.springframework.web.servlet.view.ViewResolverComposite} that contains an ordered list of
787-
* view resolvers obtained either through
788-
* {@link #configureViewResolvers(ViewResolverRegistry)}.
775+
* Register a {@link org.springframework.web.servlet.view.ViewResolverComposite}
776+
* that contains a chain of view resolvers to use for view resolution.
777+
* By default this resolver is ordered at 0 unless content negotiation view
778+
* resolution is used in which case the order is raised to
779+
* {@link org.springframework.core.Ordered#HIGHEST_PRECEDENCE
780+
* Ordered.HIGHEST_PRECEDENCE}.
781+
*
782+
* @since 4.1
789783
*/
790784
@Bean
791785
public ViewResolver mvcViewResolver() {

0 commit comments

Comments
 (0)