加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

如何从Tapestry 4迁移到5?

发布时间:2020-12-15 01:32:47 所属栏目:大数据 来源:网络整理
导读:我有一个用Taspestry 4编写的遗留应用程序. 如何将它从Tapestry 4升级到Tapestry 5.3.8? 不幸的是,我以前从未有过Tapestry的经验. 我找不到任何迁移指南.我在互联网上找到的所有东西都是 Tapestry 5 did not even attempt to be backwards compatible to Ta

我有一个用Taspestry 4编写的遗留应用程序.

如何将它从Tapestry 4升级到Tapestry 5.3.8?

不幸的是,我以前从未有过Tapestry的经验.

我找不到任何迁移指南.我在互联网上找到的所有东西都是

Tapestry 5 did not even attempt to be backwards compatible to Tapestry
4. Instead,it laid the ground work for true backwards compatibility going forwards.

目前我刚发现注释:

import org.apache.tapestry.annotations.InjectObject;
import org.apache.tapestry.annotations.Persist;

可以替换为

import org.apache.tapestry5.ioc.annotations.Inject;
import org.apache.tapestry5.annotations.Persist;

另外我怎么摆脱hivemodule.xml?

我会感谢任何链接,文档或建议.

最佳答案
据我所知,没有简单的迁移可能.从tapestry website:

There is no existing tool that supports upgrading from Tapestry 4 to
Tapestry 5; Tapestry 5 is a complete rewrite.

您可以通过构建一些会话共享服务来逐步升级/重写应用程序.免责声明:我从来没有尝试过这个,也没有在挂毯4和5之间看到它.我已经看到它从挂毯5迁移到wicket.所以从那个角度来看,如果你想远离挂毯4,你将不得不部分/完全重写.这就提出了一个问题,即你需要实现什么,而挂毯4无法做到这一点,并专注于如何最好地实现这一目标.

我知道这可能不是你所希望的答案.祝好运!

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读