简体   繁体   English

Struts 1(即 EOL)可以与 Java EE7 一起使用吗?

[英]Can Struts 1 (which is EOL) work with Java EE7?

I understand that Struts 1 is EOL but I would like to know if a project that uses Struts 1 can work with Java EE7 or do I have to stop using Struts or start using Struts 2我知道 Struts 1 已停产,但我想知道使用 Struts 1 的项目是否可以与 Java EE7 一起使用,或者我是否必须停止使用 Struts 或开始使用 Struts 2

I don't seem to find any documentation of that matter.我似乎没有找到任何关于此事的文件。

Struts only uses Servlet API from the EE implementation. Struts 仅使用来自 EE 实现的 Servlet API。 As far as I know it's designed to be backward compatible with other servlet specifications.据我所知,它被设计为向后兼容其他 servlet 规范。 But you can try it on your own risk, because it might not be built or tested under the new specs.但是您可以自行承担风险尝试它,因为它可能不是在新规范下构建或测试的。 The best approach is to build the framework yourself to see if you have any problems with it.最好的方法是自己构建框架,看看是否有任何问题。 On the docs site (which included with the distro and no longer available online) and on Maven site you can find which Servlet API was supported, this information is also in release notes .在文档站点(包含在发行版中,不再在线提供)和 Maven 站点上,您可以找到支持的 Servlet API,此信息也在 发行说明中

You can use old Struts as I already said on your own risk, means this framework is no longer supported.您可以使用我已经说过的旧 Struts,风险自负,这意味着不再支持该框架。 If you need a support from the community then you should upgrade to Struts 2.如果您需要社区的支持,那么您应该升级到 Struts 2。

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

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