Merge pull request #4598 from eugenp/update-dispatcher
update to spring 5
This commit is contained in:
commit
bafa1678eb
|
@ -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>
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue