Servlet 3.1与Servlet 3.0的区别

时间:2013-11-05 09:21:55

标签: java servlets java-ee

JavaEE 7下的servlet 3.1?

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

3 个答案:

答案 0 :(得分:12)

  

Servlet 3.1 vs 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

答案 1 :(得分:10)

  

JavaEE 7下的servlet 3.1?

Servlet 3.1随JavaEE 7一起推出。

  

Servlet 3.1与Servlet 3.0有何不同?

关于Servlet 3.1中的新变化,请阅读Arun Gupta的这篇博客文章:What's new in Servlet 3.1 ? - Java EE 7 moving forward

  

我还想知道哪个版本的eclipse支持servlet 3.1开发。

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

答案 2 :(得分:1)

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

至于更改,我收集了a number or articles on my ZEEF page,它们专门针对Servlet 3.1中的新内容。

简短摘要;非阻塞IO和一些安全功能,如'*'角色和拒绝安全约束未明确涵盖的HTTP方法的可能性是一些重大变化。