zoukankan      html  css  js  c++  java
  • servlet版本与tomcat版本对应关系,各版本web.xml头信息写法

     The mapping between the specifications and the respective Apache Tomcat versions is:

    Servlet SpecJSP SpecEL SpecWebSocket SpecJASPIC SpecApache Tomcat versionActual release revisionSupported Java Versions
    4.0 TBD (2.4?) TBD (3.1?) TBD (1.2?) 1.1 9.0.x 9.0.0.M9 (alpha) 8 and later
    3.1 2.3 3.0 1.1 1.1 8.5.x 8.5.4 7 and later
    3.1 2.3 3.0 1.1 N/A 8.0.x (superseded) 8.0.35 (superseded) 7 and later
    3.0 2.2 2.2 1.1 N/A 7.0.x 7.0.70 6 and later
    (7 and later for WebSocket)
    2.5 2.1 2.1 N/A N/A 6.0.x 6.0.45 5 and later
    2.4 2.0 N/A N/A N/A 5.5.x (archived) 5.5.36 (archived) 1.4 and later
    2.3 1.2 N/A N/A N/A 4.1.x (archived) 4.1.40 (archived) 1.3 and later
    2.2 1.1 N/A N/A N/A 3.3.x (archived) 3.3.2 (archived) 1.1 and later

    web.xml v2.3

    1 <?xml version="1.0" encoding="ISO-8859-1"?>  
    2 <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">  
    3    
    4 <web-app>  
    5    
    6 </web-app>

    web.xml v2.4

    1 <?xml version="1.0" encoding="UTF-8"?>  
    2 <web-app id="WebApp_9" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"   
    3     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
    4     xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">  
    5    
    6 </web-app>

    web.xml v2.5

     1 <?xml version="1.0" encoding="UTF-8"?>  
     2    
     3 <web-app xmlns="http://java.sun.com/xml/ns/javaee"  
     4    
     5 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
     6    
     7 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"  
     8    
     9 version="2.5">  
    10    
    11 </web-app>

    web.xml v3.0

    1 <?xml version="1.0" encoding="UTF-8"?>  
    2    
    3 <web-app  
    4         version="3.0"  
    5         xmlns="http://java.sun.com/xml/ns/javaee"  
    6         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
    7         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">  
    8    
    9 </web-app>
  • 相关阅读:
    JS运动---运动基础(匀速运动)
    浅谈浏览器解析 URL+DNS 域名解析+TCP 三次握手与四次挥手+浏览器渲染页面
    浅谈JS重绘与回流
    浅谈JS函数节流及应用场景
    浅谈JS函数防抖及应用场景
    前端模块化(CommonJs,AMD和CMD)
    Git之SSH公钥与私钥
    vi/vim编辑器必知必会
    git笔录
    vue移动端弹框组件,vue-layer-mobile
  • 原文地址:https://www.cnblogs.com/BuzyAlways/p/5690980.html
Copyright © 2011-2022 走看看