在哪里可以找到特定于应用程序的context.xml文件? [英] where can I find application specific context.xml file?

查看:265
本文介绍了在哪里可以找到特定于应用程序的context.xml文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读到 context.xml file (在Tomcat中)是特定于应用程序的。我已经从我的netbeans IDE创建了两个Web项目,并将Tomcat作为服务器。但是我无法找到特定于应用程序的 context.xml 文件。我只在Tomcat的 conf 目录中找到 context.xml

I read that context.xml file (in Tomcat) is application specific. I have created two web projects from my netbeans IDE with Tomcat as the server.But I unable to find the application specific context.xml files. I have only found the context.xml inside the conf directory of Tomcat.

我在哪里可以找到应用程序特定 context.xml 文件?

Where can I find the application specific context.xml files ?

推荐答案

我注意到了链接另一个答案是Tomcat的错误版本。这是正确的文档:

I noticed the link in the other answer is for the wrong version of Tomcat. Here is the correct documentation:

http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Defining_a_context

当你可以看到现在的选项与以前的版本不同。根据我的经验,最常见的是选项1:

As you can see the options are different now from previous versions. In my experience the most common is options 1:

In an individual file at /META-INF/context.xml inside the application files.

这篇关于在哪里可以找到特定于应用程序的context.xml文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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