资源分布在优先顺序为:
web.xml(通过
<resource-ref>元素
context.xml,
server.xml(通过
<GlobalNamingResources>)注意你定义的资源。
<Context>实际上并不需要有相应的
<resource-ref>元素在你
web.xml见关于JNDI资源Tomcat文档:HTTP://tomcat.apache .org /
tomcat-7.0-doc / jndi-resources-
howto.html

资源分布在优先顺序为:
web.xml(通过
<resource-ref>元素
context.xml,
server.xml(通过
<GlobalNamingResources>)注意你定义的资源。
<Context>实际上并不需要有相应的
<resource-ref>元素在你
web.xml见关于JNDI资源Tomcat文档:HTTP://tomcat.apache .org /