1
タイトルとして、接頭辞が「javaee:」で、「javaee:」ではないタグとはどのような違いがありますか。 、およびタグの接頭辞で「JavaEEのは:」:「JavaEEの」接頭辞「javaee:」とweb.xmlの「javaee:」とではないタグの違いは何ですか?
は、私たちはせずに、タグを使用して構成を設定する必要が見つける:
<welcome-file-list>
<welcome-file>default.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
</welcome-file-list>
が
の働き例えば動作しません。
しかし
<javaee:welcome-file-list>
<javaee:welcome-file>default.jsp</javaee:welcome-file>
<javaee:welcome-file>default.html</javaee:welcome-file>
</javaee:welcome-file-list>
動作しません。
私はTomcat 8.5.6をサーバーとして使用しています。 XML名前空間は以下をお読み
<web-app id="WebApp_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd ">
<display-name>SQUEEN WECHAT</display-name>
<welcome-file-list>
<welcome-file>default.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
</welcome-file-list>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
WEB-INF/config/spring/applicationContext.xml
</param-value>
</context-param>
<context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>WEB-INF/config/log4j.properties</param-value>
</context-param>
<listener>
<listener-class>
org.springframework.web.util.Log4jConfigListener
</listener-class>
</listener>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
</web-app>
あなたの完全なweb.xmlを、特に開始タグの宣言を示し、私は説明します.. –