Skip to content

Commit acf7313

Browse files
authored
Merge pull request eugenp#4664 from eugenp/upgrade-webflow
upgrade webflow
2 parents 016509a + 0e66fe1 commit acf7313

3 files changed

Lines changed: 5 additions & 9 deletions

File tree

‎spring-mvc-webflow/pom.xml‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,19 +83,17 @@
8383

8484
<properties>
8585
<!-- Spring -->
86-
<org.springframework.version>4.3.4.RELEASE</org.springframework.version>
86+
<org.springframework.version>5.0.1.RELEASE</org.springframework.version>
8787

8888
<!-- Spring Web Flow -->
89-
<spring.webflow>2.4.4.RELEASE</spring.webflow>
89+
<spring.webflow>2.5.0.RELEASE</spring.webflow>
9090

9191
<javax.servlet-api.version>3.1.0</javax.servlet-api.version>
9292
<jstl.version>1.2</jstl.version>
9393

9494
<httpcore.version>4.4.5</httpcore.version>
9595
<httpclient.version>4.5.2</httpclient.version>
9696

97-
<rest-assured.version>2.9.0</rest-assured.version>
98-
9997
<!-- Maven plugins -->
10098
<maven-war-plugin.version>2.6</maven-war-plugin.version>
10199
<maven-resources-plugin.version>2.7</maven-resources-plugin.version>

‎spring-mvc-webflow/src/main/java/org/baeldung/spring/WebMvcConfig.java‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,18 @@
22

33
import org.springframework.beans.factory.annotation.Autowired;
44
import org.springframework.context.annotation.Bean;
5-
import org.springframework.context.annotation.ComponentScan;
65
import org.springframework.context.annotation.Configuration;
7-
import org.springframework.context.annotation.ImportResource;
86
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
97
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
10-
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
8+
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
119
import org.springframework.web.servlet.view.InternalResourceViewResolver;
1210
import org.springframework.web.servlet.view.JstlView;
1311
import org.springframework.webflow.mvc.servlet.FlowHandlerAdapter;
1412
import org.springframework.webflow.mvc.servlet.FlowHandlerMapping;
1513

1614
@EnableWebMvc
1715
@Configuration
18-
public class WebMvcConfig extends WebMvcConfigurerAdapter {
16+
public class WebMvcConfig implements WebMvcConfigurer {
1917

2018
@Autowired
2119
private WebFlowConfig webFlowConfig;

‎spring-mvc-webflow/src/main/webapp/WEB-INF/flows/activation-flow.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<flow xmlns="http://www.springframework.org/schema/webflow"
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://www.springframework.org/schema/webflow
5-
http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd">
5+
http://www.springframework.org/schema/webflow/spring-webflow.xsd">
66

77

88
<view-state id="activation">

0 commit comments

Comments
 (0)