Merge pull request #4598 from eugenp/update-dispatcher
update to spring 5
This commit is contained in:
commit
bafa1678eb
|
@ -31,6 +31,7 @@
|
||||||
<properties>
|
<properties>
|
||||||
<spring.version>5.0.6.RELEASE</spring.version>
|
<spring.version>5.0.6.RELEASE</spring.version>
|
||||||
<junit.jupiter.version>5.0.2</junit.jupiter.version>
|
<junit.jupiter.version>5.0.2</junit.jupiter.version>
|
||||||
|
<jackson-databind.version>2.9.6</jackson-databind.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
</project>
|
</project>
|
|
@ -11,9 +11,9 @@
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>com.baeldung</groupId>
|
<groupId>com.baeldung</groupId>
|
||||||
<artifactId>parent-spring-4</artifactId>
|
<artifactId>parent-spring-5</artifactId>
|
||||||
<version>0.0.1-SNAPSHOT</version>
|
<version>0.0.1-SNAPSHOT</version>
|
||||||
<relativePath>../parent-spring-4</relativePath>
|
<relativePath>../parent-spring-5</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
|
@ -17,7 +17,7 @@ import java.io.IOException;
|
||||||
@Configuration
|
@Configuration
|
||||||
@EnableWebMvc
|
@EnableWebMvc
|
||||||
@ComponentScan("com.baeldung.springdispatcherservlet")
|
@ComponentScan("com.baeldung.springdispatcherservlet")
|
||||||
public class AppConfig extends WebMvcConfigurerAdapter {
|
public class AppConfig implements WebMvcConfigurer {
|
||||||
|
|
||||||
public void addViewControllers(ViewControllerRegistry registry) {
|
public void addViewControllers(ViewControllerRegistry registry) {
|
||||||
registry.addViewController("/").setViewName("index");
|
registry.addViewController("/").setViewName("index");
|
||||||
|
|
Loading…
Reference in New Issue