Tomcat web.xml文档? [英] Tomcat web.xml documentation?

查看:326
本文介绍了Tomcat web.xml文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有人可以提供帮助?

I wonder if anyone can help?

我在将一个Java应用程序部署到tomcat时遇到了一些问题,我想知道web.xml的文档在哪里。

I am having some issues with deploying a java app to tomcat and i wanted to see where the documentation for web.xml is.

我似乎无法找到它。

我使用的是标准的web.xml但是我想知道所有特定的xml标签是什么意思。

I am using a standard web.xml but i would like to know what all the specific xml tags mean.

当然通常使用标准的web.xml才行,但我真的很想看到一些文档。

Of course normally using a standard web.xml just works but i would really like to see some documentation.

我看过tomcat 7文档网站,但我似乎无法找到它

I have looked on the tomcat 7 documentation site but i can't seem to find it

任何人都有运气

谢谢

推荐答案

文件 web.xml 也称为部署描述符,并且不是特定于tomcat的。如果要查找有关部署描述符的一些文档,请参阅 Java Servlet规范,第13章以及附录A和B.(这是针对2.4版本,也许您更愿意搜索最新版本,3.1我认为)

The file web.xml is also know as the deployment descriptor and is not tomcat-specific. If you want to find some documentation about the deployment descriptor look in the Java Servlet Specification, chapter 13 and also apendixes A and B. (this is for version 2.4, maybe you rather search for the most recent version, 3.1 I think)

现在,如果您要在 CATALINA_HOME / conf中查找有关 web.xml 文件的文档,那么该文件本身已经通过内部注释自行记录, BTW,第一条评论说:

Now if you are looking for documentation about the file web.xml in CATALINA_HOME/conf , the file itself is already well self-documented with internal comments, BTW, the first comment says:

  <!-- 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.   -->

这篇关于Tomcat web.xml文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆