我想知道有没有人能帮上忙?
我在将java应用程序部署到tomcat方面遇到了一些问题,我想看看web.xml的文档在哪里。
我似乎找不到它。
我使用的是一个标准的web.xml,但是我想知道所有特定的标记意味着什么。
当然,通常使用标准的web.xml只是有效的,但是我真的很想看到一些文档。
我看过tomcat 7文档站点,但似乎找不到它。
任何有运气的人
谢谢
发布于 2014-04-18 12:16:18
文件web.xml也称为部署描述符,不特定于tomcat。如果您想在Java规范第13章以及附件A和B中找到一些关于部署描述符的文档(这是版本2.4,也许您更愿意搜索最新版本,我认为是3.1 )。
现在,如果您正在寻找关于CATALINA_HOME/conf中的web.xml文件的文档,那么该文件本身就已经有了很好的自我记录,内部评论,BTW,第一个评论是:
<!-- 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. -->发布于 2014-04-18 12:21:57
也许你会发现这个参考指南是有用的
发布于 2014-04-18 12:27:53
如果您指的是conf/web.xml中的web.xml,这是默认应用程序的部署描述符。
见这里http://tomcat.apache.org/tomcat-7.0-doc/default-servlet.html
对于一般的web.xml规范,您必须检查任何JEE教程。
https://stackoverflow.com/questions/23153778
复制相似问题