你配tomcat的连接池,驱动就要放到tomcat\common\lib下面去啊,放自己的项目lib下tomcat怎么知道到那下面去找?

解决方案 »

  1.   

    不建议使用tomcat里server.xml连接池配置
    其实单写出来也是可以的阿
      

  2.   

    楼主为什么不在hbm文件里直接配连接池捏?<hibernate-configuration>    <session-factory>        <property name="hibernate.connection.driver_class">org.gjt.mm.mysql.Driver</property>        <property name="hibernate.connection.url">jdbc:mysql://localhost/student</property>        <property name="hibernate.connection.username">root</property>        <property name="hibernate.connection.password">wudi</property>        <property name="hibernate.connection.pool_size">100</property>        <property name="show_sql">true</property>        <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
            
            <property name="hibernate.cache.use_query_cache">true</property>        <!-- Mapping files -->
           
            <mapping resource="student.hbm.xml"/>    </session-factory></hibernate-configuration>
      

  3.   

    http://blog.csdn.net/tangshuo/archive/2007/05/28/1627858.aspx