Java Servlet 3.1 与 Servlet 3.0 的区别

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19785436/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-12 20:11:58  来源:igfitidea点击:

How Servlet 3.1 differs to Servlet 3.0

javaservletsjakarta-ee

提问by CaiNiaoCoder

Is servlet 3.1 under JavaEE 7?

servlet 3.1 是 JavaEE 7 下的吗?

Which version of eclipse supports servlet 3.1 development?

哪个版本的eclipse支持servlet 3.1开发?

采纳答案by Eng.Fouad

Is servlet 3.1 under JavaEE 7?

servlet 3.1 是 JavaEE 7 下的吗?

Servlet 3.1 is introduced with JavaEE 7.

JavaEE 7 引入了 Servlet 3.1。

How Servlet 3.1 differs to Servlet 3.0?

Servlet 3.1 与 Servlet 3.0 有何不同?

Regarding the new changes in Servlet 3.1, read this blog post by Arun Gupta: What's new in Servlet 3.1 ? - Java EE 7 moving forward

关于 Servlet 3.1 中的新变化,请阅读 Arun Gupta 的这篇博文:Servlet 3.1 中有什么新内容?- Java EE 7 向前发展

And I also want to know which version of eclipse support servlet 3.1 development.

而且我也想知道eclipse哪个版本支持servlet 3.1开发。

The new version of Eclipse 4.3 (named Kepler) supports Java EE 7 technologies. See Arun Gupta's blog post: Java EE 7 support in Eclipse 4.3

新版本的 Eclipse 4.3(名为 Kepler)支持 Java EE 7 技术。请参阅 Arun Gupta 的博客文章:Eclipse 4.3 中的 Java EE 7 支持

回答by Arjan Tijms

In addition to the answer given by Eng.Fouad: Servlet 3.1 was indeed introduced with Java EE 7, but it's also implemented standalone by various servers that are themselves not Java EE products, e.g. Tomcat 8or Jetty 9.1.

除了 Eng.Fouad 给出的答案:Java EE 7 确实引入了 Servlet 3.1,但它也由本身不是 Java EE 产品的各种服务器独立实现,例如Tomcat 8Jetty 9.1

As for the changes, I collected a number or articles on my ZEEF pagethat are specifically about the new things in Servlet 3.1.

至于变化,我在我的 ZEEF 页面上收集了一些或文章,专门关于 Servlet 3.1 中的新事物。

As a short summary; non-blocking IO and some security features like the '*' role and the possibility to deny HTTP methods not explicitly covered by security constraints were some of the major changes.

作为一个简短的总结;非阻塞 IO 和一些安全功能(如“*”角色)以及拒绝安全约束未明确涵盖的 HTTP 方法的可能性是一些主要变化。

回答by Premraj

Servlet 3.1 vs Servlet 3.0 along with others too

Servlet 3.1 与 Servlet 3.0 以及其他

+=============+================+====================+=============================================================================+
|   VERSION   |      DATE      |   JAVA EE / JDK    |                             FEATURES / CHANGES                              |
+=============+================+====================+=============================================================================+
| Servlet 3.1 | May 2013       | JavaEE 7           | Non-blocking I/O, HTTP protocol upgrade mechanism                           |
+-------------+----------------+--------------------+-----------------------------------------------------------------------------+
| Servlet 3.0 | December 2009  | JavaEE 6, JavaSE 6 | Pluggability, Ease of development, Async Servlet, Security, File Uploading  |
+-------------+----------------+--------------------+-----------------------------------------------------------------------------+
| Servlet 2.5 | September 2005 | JavaEE 5, JavaSE 5 | Requires JavaSE 5, supports annotation                                      |
+-------------+----------------+--------------------+-----------------------------------------------------------------------------+
| Servlet 2.4 | November 2003  | J2EE 1.4, J2SE 1.3 | web.xml uses XML Schema                                                     |
+-------------+----------------+--------------------+-----------------------------------------------------------------------------+
| Servlet 2.3 | August 2001    | J2EE 1.3, J2SE 1.2 | Addition of Filter                                                          |
+-------------+----------------+--------------------+-----------------------------------------------------------------------------+
| Servlet 2.2 | August 1999    | J2EE 1.2, J2SE 1.2 | Becomes part of J2EE, introduced independent web applications in .war files |
+-------------+----------------+--------------------+-----------------------------------------------------------------------------+
| Servlet 2.1 | November 1998  | Unspecified        | First official specification, added RequestDispatcher, ServletContext       |
+-------------+----------------+--------------------+-----------------------------------------------------------------------------+
| Servlet 2.0 |                | JDK 1.1            | Part of Java Servlet Development Kit 2.0                                    |
+-------------+----------------+--------------------+-----------------------------------------------------------------------------+
| Servlet 1.0 | June 1997      |                    |                                                                             |
+-------------+----------------+--------------------+-----------------------------------------------------------------------------+

Source

来源