如何在 spring4 中配置多个视图解析器?

How to configure multiple view resolvers in spring4?

如何在spring4中配置多个视图解析器以防止它们之间发生冲突?例如:

@Bean
    public ViewResolver viewResolver() {
        InternalResourceViewResolver resolver = new InternalResourceViewResolver();
        resolver.setPrefix("/WEB-INF/views/");
        resolver.setSuffix(".jsp");
        resolver.setExposeContextBeansAsAttributes(true);
        return resolver;
    }

@Bean
    public ViewResolver viewResolver() {
        return new TilesViewResolver();
    }

网上有xml-configuration的解释,spring4的java-configuration我没看到

这是您可以使用的link:

https://blog.frankel.ch/chaining-url-view-resolvers-in-spring-mvc/#gsc.tab=0