2012年9月13日

hibernate 利用c3p0连接mysql 数据库 can't open session

摘要: 最近项目用到了hibernate3.0 c3po mysql的数据层组合,开发部署非常顺利,但每天早上访问应用都抛出 Could not open Hibernate session for transaction 异常,Caused by: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception,但经过几次访问后又恢复正常,datasource配置如下:<bean id="dataSource" class="com.mc 阅读全文

posted @ 2012-09-13 10:05 小山丘 阅读(796) 评论(0) 推荐(0) 编辑

导航