0
点赞
收藏
分享

微信扫一扫

警告: Exception encountered during context initialization - cancelling refresh attempt: org.springfram

言诗把酒 2022-02-16 阅读 62

警告: 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(相对应类:)的默认的构造方法;

在相对于类中构建一个无参的构造方法;

举报

相关推荐

0 条评论