我们有一个基于Spring 2.5.6和Webflow 2.3的大型网络应用程序。现在我们要将Spring升级到3并将Webflow升级到2.3。升级Spring非常简单,但是我们在其他库上有一些问题。更改版本后,我们甚至无法使用maven构建我们的应用程序。例如:包名称,方法可见性修饰符,甚至被删除的方法有很大的不同,我们在1.0.6中使用这些方法。 你现在有些指南,我们应该如何替换改变的方法?我在Spring网站上发现了类似的东西,但对我来说这不太有用。 也许有人这样做,可以给我们一些提示? 感谢您的帮助:)将Spring Webflow从1.0.6升级到2.3
回答
这里很难给出具体的建议。升级总是一件困难的事情。首先,我鼓励您阅读关于在webflow文档中升级的章节,例如从这里开始http://static.springsource.org/spring-webflow/docs/2.3.x/reference/pdf/spring-webflow-reference.pdf(第16章 - 从1.0升级),您可以看到自1.0版以来发生了什么变化。然后你可以决定升级是否合理。祝你好运 ! :)
是的,这是可能的。仔细阅读Spring文档以了解发布。您将需要使用1.0.X & 2.3.X的参考文档,因为这会有所帮助。请特别注意升级指南推荐的以下更改。
第1步。我写了一个小工具,下方延伸升级程序以递归发现我们所有的网络流量和转化标签是符合2.3.x版本:
java org.springframework.webflow.upgrade.WebFlowUpgrader flow-to-upgrade.xml
这个类是在一个Webflow发现罐子来源。
步骤2.我更新架构:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:webflow="http://www.springframework.org/schema/webflow-config"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/webflow-config
http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.3.xsd">
步骤3.确认flowExecutor标签更新为2.3符合性:
<webflow:flow-executor id="flowExecutor" />
步骤4.更新flowRegistry静态路径based声明并确保符合标签:
<webflow:flow-registry id="flowRegistry">
<webflow:flow-location path="/WEB-INF/hotels/booking/booking.xml" />
</webflow:flow-registry>
第5步。更改FlowController类以匹配新的Web Flow jar: 从org.springframework.webflow.executor.mvc.FlowController
更改为org.springframework.webflow.mvc.servlet.FlowController
第6步。更新FlowController bean类的引用。添加WebFlow1FlowUrlHandler可确保Web Flow 1.0.x流向后兼容新的Web Flow 2罐。
<bean name="/pos.htm" class="org.springframework.webflow.mvc.servlet.FlowController">
<property name="flowExecutor" ref="flowExecutor" />
<property name="flowUrlHandler">
<bean class="org.springframework.webflow.context.servlet.WebFlow1FlowUrlHandler" />
</property>
</bean>
http://docs.spring.io/spring-webflow/docs/2.3.x/reference/htmlsingle/#upgrade-guide
http://static.springsource.org/spring-webflow/docs/1.0.1/reference/index.html
- 1. 将cassandra 1.0.6升级到cassandra 1.0.7版本
- 2. 从kohana 2.3升级到3.3
- 3. 将Sonata从2.3升级到3.0
- 4. InstantRails 2.0将Rails升级到2.3
- 5. Cakephp从1.3升级到2.3 shell没有正确升级?
- 6. 文件上传Spring Webflow 2.3和安全
- 7. 将cakephp从2.2版升级到2.3时涉及哪些步骤?
- 8. 从Spring MVC调度到Spring Webflow
- 9. Struts 2.3升级OGNL问题
- 10. 升级到Android 2.3后出现问题
- 11. ConverterNotFoundException将Spring升级到4.3.4后
- 12. 从Spring Security 3.x升级到4.x
- 13. 从Rails 2.3升级到Rails 3 - 时区问题
- 14. 将Spring-js中的dojo从1.3升级到1.4
- 15. 将spring-flex从1.0.3升级到1.5.2会导致NullPointerException
- 16. 升级CometD从2.4/2.5升级到2.9.1?
- 17. 从Spring 2.5升级到Spring 3.0.5 a Josso应用服务器
- 18. UnsupportedClassVersionError从JDK6升级到7
- 19. 将代码升级从3.0.6升级到3.1.0
- 20. 将升级程序从4.2.1升级到5.3.1
- 21. Spring Webflow 2.3测试:如何模拟流变量的@Autowired字段
- 22. GWT 2.3升级后的RPC错误
- 23. 将SQL Server 2000升级到2005或2008 - 将DTS升级到SSIS
- 24. 将django-cms升级到3.1.2和将django升级到1.8.3
- 25. 将AspNet.Identity.EntityFramework升级到2.1.0并将EntityFramework升级到6.1.1
- 26. 如何将数据从外部窗体绑定到spring webflow?
- 27. Spring Webflow流
- 28. Spring Webflow和JQuery
- 29. Spring Webflow + CDI
- 30. 从Spring 3.0.3.RELEASE升级导致:java.lang.NoSuchFieldError:USER_DECLARED_METHODS
你试过问在春季论坛的Webflow? – 2012-03-31 09:01:45