我在部署Java应用到Tomcat时遇到了一些问题,想知道web.xml的文档在哪里。我找不到它。
我正在使用标准的web.xml,但我想知道所有特定的XML标签是什么意思。
当然,通常使用标准的web.xml就可以工作,但我真的想看一些文档。
我已经在Tomcat 7文档网站上查找过,但找不到。
<!-- This document defines default values for *all* web applications -->
<!-- loaded into this instance of Tomcat. As each application is -->
<!-- deployed, this file is processed, followed by the -->
<!-- "/WEB-INF/web.xml" deployment descriptor from your own -->
<!-- applications. -->
<!-- -->
<!-- WARNING: Do not configure application-specific resources here! -->
<!-- They should go in the "/WEB-INF/web.xml" file in your application. -->
如果您指的是conf/web.xml中的web.xml,则这是默认应用程序的部署描述符。
请参见此处http://tomcat.apache.org/tomcat-7.0-doc/default-servlet.html
有关一般web.xml规范,您需要查看任何JEE教程。