spring-framework / org.springframework.web.servlet.config.annotation / WebMvcConfigurationSupport / mvcViewResolver

mvcViewResolver

@Bean open fun mvcViewResolver(): ViewResolver

Register a ViewResolverComposite that contains a chain of view resolvers to use for view resolution. By default this resolver is ordered at 0 unless content negotiation view resolution is used in which case the order is raised to Ordered.HIGHEST_PRECEDENCE.

If no other resolvers are configured, ViewResolverComposite#resolveViewName(String, Locale) returns null in order to allow other potential ViewResolver beans to resolve views.

Since
4.1