Exception java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource

后端 未结 6 1873
广开言路
广开言路 2021-02-07 07:07

I\'m trying to integrate spring and Hibernate with mysql. I created a simple java project and a package with 3 classes, an application context.xml file, and an hbm.xml for mappi

6条回答
  •  清酒与你
    2021-02-07 07:19

    change org.apache.commons.dbcp.BasicDataSource to org.apache.commons.dbcp2.BasicDataSource,it works well

提交回复
热议问题