title: How to configure multiple view resolvers in spring4?
body: <p>How to configure multiple view resolvers in spring4 in order to prevent a conflict between them? As for example:</p>
  
  <pre><code>@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();
      }
  </code></pre>
  
  <p>There are explanations for xml-configuration on the Internet, but I haven't seen any for spring4 java-configuration.</p>