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

后端 未结 6 1877
广开言路
广开言路 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:25

    I got the same Exception stack with DBCP2. The issue was that my local m2 cache of the JAR file was corrupt. After I deleted it, Maven said it could not download 2.1.1. I switched to 2.5.0 and the app loaded successfully.

提交回复
热议问题