My Sql 的数据库连接问题 Name jdbc is not bound in this Context 包数据库连接出错误 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 jdbc没有绑定,检查一下你的dirverurl web.xml<resource-ref><res-ref-name>DBNAME</res-ref-name><res-type>javax.sql.DataSource</res-type><res-auth>Container</res-auth><res-sharing-scope>Shareable</res-sharing-scope></resource-ref>在tomcat中配置如下:<Context path="/工程名"><Resource name="DBNAME"type="javax.sql.DataSource"username="root"password="xxxx"driverClassName="com.mysql.jdbc.Driver"maxIdle="10"url="jdbc:mysql://localhost:3306/DBNAME"maxActive="10"/></Context> web.xml<resource-ref><res-ref-name>DBNAME</res-ref-name><res-type>javax.sql.DataSource</res-type><res-auth>Container</res-auth><res-sharing-scope>Shareable</res-sharing-scope></resource-ref>在tomcat中配置如下:<Context path="/工程名"><Resource name="DBNAME"type="javax.sql.DataSource"username="root"password="xxxx"driverClassName="com.mysql.jdbc.Driver"maxIdle="10"url="jdbc:mysql://localhost:3306/DBNAME"maxActive="10"/></Context> context是上下文意思,也就是指这个mysql的运行环境,也就这个mysql的配置问题 s2sh中出现的错误 【求助】JPA一对一出错 登陆页面多提交按钮的跳转问题 ajax提交一定需要Servlet来接吗? java 多线程调用RMI 急需帮助,hibernate问题。 dom4j检查节点问题 struts-el样例问题 cmp和cnp有什么区别? 请帮我解释一下输出的结果,谢谢! 用JAVA SWING写了个小应用,怎么改启动后的进程名呢? BerkeleyDB的多线程问题
web.xml
<resource-ref>
<res-ref-name>DBNAME</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
在tomcat中配置如下:
<Context path="/工程名">
<Resource name="DBNAME"
type="javax.sql.DataSource"
username="root"
password="xxxx"
driverClassName="com.mysql.jdbc.Driver"
maxIdle="10"
url="jdbc:mysql://localhost:3306/DBNAME"
maxActive="10"/>
</Context>
web.xml
<resource-ref>
<res-ref-name>DBNAME</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
在tomcat中配置如下:
<Context path="/工程名">
<Resource name="DBNAME"
type="javax.sql.DataSource"
username="root"
password="xxxx"
driverClassName="com.mysql.jdbc.Driver"
maxIdle="10"
url="jdbc:mysql://localhost:3306/DBNAME"
maxActive="10"/>
</Context>