且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

需要有关使用数据源连接池连接到数据库的帮助

更新时间:2023-09-21 14:43:22

我看到了一个context.xml,所以我假设这是在Tomcat上运行的(非常有用的信息让你知道)。

I see a context.xml, so I'm assuming this is to be run on Tomcat (quite useful information to give you know).

Tomcat要求您还在web.xml中的数据源中添加一个条目--Tomcat文档非常清楚地解释了这一点。

Tomcat requires you to also put an entry to the datasource in your web.xml - the Tomcat documentation explains all that quite clearly.

http://tomcat.apache.org/tomcat-7.0-doc/jndi-datasource-examples-howto .html