警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.apache.commons.dbcp.BasicDataSource] for bean with name 'oracleDataSource' defined in class path resource [com/h/spring/start/mybatis/mybatisConStart.xml]; nested exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource Exception in thread "main" org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.apache.commons.dbcp.BasicDataSource] for bean with name 'oracleDataSource' defined in class path resource [com/h/spring/start/mybatis/mybatisConStart.xml]; nested exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(Abstr |
Cannot find class [org.apache.commons.dbcp.BasicDataSource]
博客内容提要:当遇到'Cannot find class [org.apache.commons.dbcp.BasicDataSource]'错误时,问题通常出在缺少commons-dbcp.jar和commons-pool.jar这两个依赖上。解决方案是下载这两个jar包,例如可以从CSDN提供的common-jars.zip中获取。
摘要由CSDN通过智能技术生成