Merge pull request #4598 from eugenp/update-dispatcher

update to spring 5
This commit is contained in:
Loredana Crusoveanu
2018-07-01 11:45:47 +03:00
committed by GitHub
3 changed files with 4 additions and 3 deletions
+1
View File
@@ -31,6 +31,7 @@
<properties>
<spring.version>5.0.6.RELEASE</spring.version>
<junit.jupiter.version>5.0.2</junit.jupiter.version>
<jackson-databind.version>2.9.6</jackson-databind.version>
</properties>
</project>
+2 -2
View File
@@ -11,9 +11,9 @@
<parent>
<groupId>com.baeldung</groupId>
<artifactId>parent-spring-4</artifactId>
<artifactId>parent-spring-5</artifactId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>../parent-spring-4</relativePath>
<relativePath>../parent-spring-5</relativePath>
</parent>
<dependencies>
@@ -17,7 +17,7 @@ import java.io.IOException;
@Configuration
@EnableWebMvc
@ComponentScan("com.baeldung.springdispatcherservlet")
public class AppConfig extends WebMvcConfigurerAdapter {
public class AppConfig implements WebMvcConfigurer {
public void addViewControllers(ViewControllerRegistry registry) {
registry.addViewController("/").setViewName("index");