File tree Expand file tree Collapse file tree
spring-mvc-simple/src/main/java/com/baeldung/spring/configuration Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414import org .springframework .web .servlet .ViewResolver ;
1515import org .springframework .web .servlet .config .annotation .DefaultServletHandlerConfigurer ;
1616import org .springframework .web .servlet .config .annotation .EnableWebMvc ;
17- import org .springframework .web .servlet .config .annotation .WebMvcConfigurerAdapter ;
17+ import org .springframework .web .servlet .config .annotation .WebMvcConfigurer ;
1818import org .springframework .web .servlet .view .ContentNegotiatingViewResolver ;
1919import org .springframework .web .servlet .view .InternalResourceViewResolver ;
2020
2424@ Configuration
2525@ EnableWebMvc
2626@ ComponentScan (basePackages = { "com.baeldung.springmvcforms" , "com.baeldung.spring.controller" , "com.baeldung.spring.validator" })
27- public class ApplicationConfiguration extends WebMvcConfigurerAdapter {
27+ public class ApplicationConfiguration implements WebMvcConfigurer {
2828
2929 @ Override
3030 public void configureDefaultServletHandling (DefaultServletHandlerConfigurer configurer ) {
@@ -59,7 +59,5 @@ public void configureMessageConverters(List<HttpMessageConverter<?>> converters)
5959 converters .add (new StringHttpMessageConverter ());
6060 converters .add (new RssChannelHttpMessageConverter ());
6161 converters .add (new JsonChannelHttpMessageConverter ());
62-
63- super .configureMessageConverters (converters );
6462 }
6563}
You can’t perform that action at this time.
0 commit comments