为什么找不到org.apache.commons.dbcp.BasicDataSource 1、commons-dbcp.jar 2、commons-collections-3.2.jar 3、commons-pool.jar 加入以上3jar 就可以了。