警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bankDaoImpl' defined in class path resource [spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.cs.dao.Impl.BankDaoImpl]: No default constructor found; nested exception is java.lang.NoSuchMethodException: org.cs.dao.Impl.BankDaoImpl.<init>()
Exception in thread "main"
原因:
没有找到BankDaoImpl(相对应类:)的默认的构造方法;
在相对于类中构建一个无参的构造方法;