当前位置: 代码迷 >> Java Web开发 >> hibernate\c3p0\hibernate.cfg.xml配置有关问题
  详细解决方案

hibernate\c3p0\hibernate.cfg.xml配置有关问题

热度:658   发布时间:2016-04-17 16:34:53.0
hibernate\c3p0\hibernate.cfg.xml配置问题。
hibernate的c3p0连接池如何配置?
不知道为什么我的一加上连接池就联不上数据库


-----------------------------
.
.
.
<property   name= "hibernate.cglib.use_reflection_optimizer "> true </property>
                <property   name= "hibernate.connection.driver_class "> oracle.jdbc.driver.OracleDriver </property>
                <property   name= "hibernate.connection.username "> RVIMS </property>
                <property   name= "hibernate.connection.password "> RVIMS </property>
                <property   name= "hibernate.connection.url "> jdbc:oracle:thin:@localhost:1521:myweb </property>
                <property   name= "hibernate.dialect "> org.hibernate.dialect.OracleDialect </property>
<property   name= "hibernate.connection.provider_class "> org.hibernate.connection.C3P0ConnectionProvider </property>
<property   name= "hibernate.c3p0.max_size "> 15 </property>
<property   name= "hibernate.c3p0.min_size "> 1 </property>
<property   name= "hibernate.c3p0.timeout "> 1800 </property>
<property   name= "hibernate.c3p0.max_statements "> 1000 </property>
<property   name= "hibernate.c3p0.idle_test_period "> 30000 </property>
<property   name= "hibernate.c3p0.acquire_increment "> 1 </property>
<property   name= "hibernate.c3p0.validate "> false </property>
  <property   name= "show_sql "> true </property>
                <mapping   resource= "com/htits/rvims/pojo/CodeUnit.hbm.xml "   />
                <mapping   resource= "com/htits/rvims/pojo/SysLog.hbm.xml "   />
                <mapping   resource= "com/htits/rvims/pojo/CodeGate.hbm.xml "   />
.
.
.

------解决方案--------------------
对应的jar放进去了吗?
------解决方案--------------------
有没有错误信息?
打出来看看。
------解决方案--------------------
这么多分啊
真是奢侈
不过你写的不明不白,的确很难拿到这分啊
------解决方案--------------------
mark~!
up~!
  相关解决方案