Skip to content

Commit 58ad784

Browse files
authored
Merge pull request eugenp#4494 from eugenp/update-mvc-simple
update to spring 5
2 parents d2cac5b + 2d9c120 commit 58ad784

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎spring-mvc-simple/src/main/java/com/baeldung/spring/configuration/ApplicationConfiguration.java‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import org.springframework.web.servlet.ViewResolver;
1515
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer;
1616
import 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;
1818
import org.springframework.web.servlet.view.ContentNegotiatingViewResolver;
1919
import org.springframework.web.servlet.view.InternalResourceViewResolver;
2020

@@ -24,7 +24,7 @@
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
}

0 commit comments

Comments
 (0)