web.xml 3.1
在配置web.xml那塊,servlet3.0轉換為3.1具體是怎么轉換的呢?在網上找的3.0web.xml ?schema粘貼上去,在配置servlet-mapping的時候serlvet-name和url-pattren標紅 提示Element servlet-name is not allowed here
或者說我用3.0的可以嗎
在配置web.xml那塊,servlet3.0轉換為3.1具體是怎么轉換的呢?在網上找的3.0web.xml ?schema粘貼上去,在配置servlet-mapping的時候serlvet-name和url-pattren標紅 提示Element servlet-name is not allowed here
或者說我用3.0的可以嗎
2016-09-24
舉報
2016-09-25
<web-app
? ? ? ?xmlns="http://xmlns.jcp.org/xml/ns/javaee"
? ? ? ?xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
? ? ? ?xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
? ? ? ?version="3.1"
? ? ? ?metadata-complete="true"
></web-app>
version 這個值還有就是schemaLocation 的webapp_3_1.xsd?
我的是這么配置的,沒問題