我們有一個基於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