org.springframework.beans.factory.BeanCreationException

来源:互联网 发布:央行4040mlf知乎 编辑:程序博客网 时间:2024/06/18 00:19

遇到此类错误了,花了一天查到问题所在,终于被我找到解决办法

首先错误信息:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dictHelper' defined in URL [jar:file:/D:/ideaProject2/web/eh-web-enterprise/target/eh-web-enterprise/WEB-INF/lib/eh-commons-dict-1.0.0.jar!/com/lifesea/commons/dict/DictHelper.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dictService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'loadDictService' is defined

初始化bean失败,注入失败。

我的问题解决办法:找到标注为红色的jar包,删掉后运行正常。