4

在我的目录中Tomcat 6.0.x有一个context.xml文件,并且在从.confcontext.xmlMETA-INFnetbeans6.9.1

context.xml包含要连接的数据库的详细信息...

应用程序将使用两者中的哪一个来连接数据库

  • Context.xml 中tomcat/conf
  • Context.xml 中project/META-INF
4

1 回答 1

2

我的理解是,它tomcat/conf/context.xml定义了一组“全局”、静态配置的上下文。任何使用自己部署的 WARcontext.xml都将使用它进行配置,而不是使用全局上下文中定义的任何上下文。

于 2011-05-01T11:55:01.453 回答