Cannot find class [org.apache.commons.dbcp.BasicDataSource]解决方法

Cannot find class [org.apache.commons.dbcp.BasicDataSource] for bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/chapter2-servlet.xml]; nested exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource

 

解决办法:添加commons-pool.jar、commons-dbcp-1.2.2.jar和commons-collections-3.2.jar包

你可能感兴趣的:(Cannot find class [org.apache.commons.dbcp.BasicDataSource]解决方法)