不安分的黑娃
踏踏实实,坚持学习,慢慢就懂了~

参考资料

web.xml

Java EE 8

对应 Sevlet 4.0

<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://xmlns.jcp.org/xml/ns/javaee"
    xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee 
    https://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/web-app_4_0.xsd"
    id="WebApp_NO_1" version="4.0">
    ....
</web-app>

Java EE 7

对应 Sevlet 3.1

<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://xmlns.jcp.org/xml/ns/javaee"
    xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee 
    https://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/web-app_3_1.xsd"
    id="WebApp_NO_1" version="3.1">

	...
</web-app>

Java EE 6

对应 Sevlet 3.0

<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://java.sun.com/xml/ns/javaee"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/web-app_3_0.xsd"
    id="WebApp_NO_1" version="3.0">
	
	...
</web-app>

Java EE 5

对应 Sevlet 2.5

<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://java.sun.com/xml/ns/javaee"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee https://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/web-app_2_5.xsd"
    id="WebApp_NO_1" version="2.5">

    ...
</web-app>

Java EE 4

对应 Sevlet 2.4

<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://java.sun.com/xml/ns/j2ee"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/j2ee/web-app_2_4.xsd"
    id="WebApp_NO_1" version="2.4">
	
    ...
</web-app>

posted on 2023-07-09 12:06  不安分的黑娃  阅读(36)  评论(0编辑  收藏  举报