我在将 Java 应用程序部署到 Tomcat 时遇到一些问题,我想查看 web.xml 的文档在哪里。我好像找不到啊
我正在使用标准 web.xml,但我想知道所有特定 xml 标签的含义。
当然,通常使用标准的 web.xml 就可以了,但我真的很想看看一些文档。
我查看了 Tomcat 7 文档网站,但似乎找不到它。
文件web.xml也被称为部署描述符并且不是特定于tomcat的。如果您想查找有关部署描述符的一些文档,请查看Java Servlet 规范 http://download.oracle.com/otndocs/jcp/servlet-2.4-fr-spec-oth-JSpec/,第 13 章以及附录 A 和 B。(这是针对 2.4 版本的,也许您更愿意搜索最新版本,我认为是 3.1)
现在,如果您正在寻找有关该文件的文档web.xml in 卡塔琳娜_HOME/conf ,文件本身已经有很好的自我记录,带有内部注释,顺便说一句,第一条注释说:
<!-- 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. -->
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)