Permalink
Browse files

Remove internalViewResolver - not needed

  • Loading branch information...
1 parent 2139758 commit e014860d43d8e90b2d299ee36fe92171980b0c87 Adrian Colyer committed Oct 10, 2012
Showing with 1 addition and 12 deletions.
  1. +1 −12 src/main/java/org/springsource/samples/montyhall/config/WebConfig.java
@@ -1,13 +1,10 @@
package org.springsource.samples.montyhall.config;
-import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
-import org.springframework.web.servlet.ViewResolver;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
-import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
-import org.springframework.web.servlet.view.InternalResourceViewResolver;
+import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import org.springsource.samples.montyhall.web.CorsInterceptor;
@Configuration
@@ -20,12 +17,4 @@ public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(new CorsInterceptor());
}
- @Bean
- public ViewResolver viewResolver() {
- InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();
- viewResolver.setPrefix("/WEB-INF/jsp/");
- viewResolver.setSuffix(".jsp");
- return viewResolver;
- }
-
}

0 comments on commit e014860

Please sign in to comment.