20

servlet 3.1 在 JavaEE 7 下吗?

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

4

3 回答 3

20

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      |                    |                                                                             |
+-------------+----------------+--------------------+-----------------------------------------------------------------------------+

资源

于 2015-10-26T13:23:37.893 回答
13

servlet 3.1 在 JavaEE 7 下吗?

JavaEE 7 引入了 Servlet 3.1。

Servlet 3.1 与 Servlet 3.0 有何不同?

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

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

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

于 2013-11-05T09:28:13.967 回答
1

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

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

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

于 2014-04-15T22:05:51.923 回答