简体   繁体   English

Struts 2.3.x 和 Struts 2.5.x 有什么区别

[英]What is the difference between Struts 2.3.x and Struts 2.5.x

I know the difference between Struts 1 and 2.我知道 Struts 1 和 2 之间的区别。

But what I don't know and cannot find an answer to, is why there are two versions of Struts 2?但是我不知道也找不到答案,为什么 Struts 2 有两个版本?

Edit 1: As per this announcement https://struts.apache.org/announce-2019#a20190912 on Sep 2019, version 2.3.x has reached its EOL and now we only have 2.5.x version编辑 1:根据本公告https://struts.apache.org/announce-2019#a20190912于 2019 年 9 月,2.3.x 版已达到 EOL,现在我们只有 2.5.x 版

There is a release notes document here: https://struts.apache.org/docs/version-notes-25.html .这里有一个发行说明文档: https : //struts.apache.org/docs/version-notes-25.html It contains the whole changelog, and it also references the fixed tickets.它包含整个变更日志,并且还引用了固定票证。

The 2.5.x series introduced some breaking changes, so the development is now branching, as 2.3.x is still supported. 2.5.x 系列引入了一些突破性的变化,所以现在开发分支,因为 2.3.x 仍然支持。 Basically they backport some changes to 2.3.x without breaking things.基本上,他们将一些更改向后移植到 2.3.x,而不会破坏任何东西。

Here is the list of few changes made/replace/deprecated from Struts 2.3.x and Struts 2.5.x that I found while Googling the internet.这是我在谷歌搜索互联网时发现的从 Struts 2.3.x 和 Struts 2.5.x 所做/替换/弃用的一些更改列表。

  1. StrutsPrepareAndExecuteFilter -> Inside the web.xml filter of Struts 2.5.x has been changed. StrutsPrepareAndExecuteFilter -> Struts 2.5.x 的web.xml过滤器内部已更改。
  2. Document Type Definition -> Struts DTD was updated to 2.5 version.文档类型定义 -> Struts DTD 更新到 2.5 版本。
  3. Package Names Changed -> Some classes were moved to different packages.包名称已更改 -> 某些类已移至不同的包。
  4. Tags Attributes -> Struts 2.5.x UI tags attribute id was replaced with var attribute.标签属性 -> Struts 2.5.x UI 标签属性 id 被替换为 var 属性。

You can also check Difference between Struts 2.3.x and 2.5.x for detail information.您还可以查看Struts 2.3.x 和 2.5.x 之间的差异以获取详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM