|
149 | 149 | * libraries available on the classpath.
|
150 | 150 | * </ul>
|
151 | 151 | *
|
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 |
| - * |
163 | 152 | * @see EnableWebMvc
|
164 | 153 | * @see WebMvcConfigurer
|
165 | 154 | * @see WebMvcConfigurerAdapter
|
@@ -783,9 +772,14 @@ protected final void addDefaultHandlerExceptionResolvers(List<HandlerExceptionRe
|
783 | 772 | }
|
784 | 773 |
|
785 | 774 | /**
|
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 |
789 | 783 | */
|
790 | 784 | @Bean
|
791 | 785 | public ViewResolver mvcViewResolver() {
|
|
0 commit comments