当我尝试使用HibernateTemplate
通过spring-dao将程序与数据库连接时,出现以下错误。
WARNING: Exception encountered during context initialization - cancelling refresh attempt:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ds' defined in class path resource [resource/test.xml]: Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.commons.dbcp.BasicDataSource]: No default constructor found;
nested exception is java.lang.NoClassDefFoundError: org/apache/commons/pool/ObjectPool