factory.NoSuchBeanDefinitionException: No qualifying bean of type

原文链接: https://my.oschina.net/ouminzy/blog/2980319

我的错误原因是 自己 引用了自己

Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.moneyP2P.p2p.VSFP.spring.service.loan.RepayRecordGuaranteeInfoService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.annotation.Resource(shareable=true, lookup=, name=, description=, authenticationType=CONTAINER, type=class java.lang.Object, mappedName=)}
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:988)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:858)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:770)

 

也就是 RepayRecordGuaranteeInfoService 代码里面 

@Autowired 

RepayRecordGuaranteeInfoService

引用了自身, 写代码写乱了,,,

 

 

 

 

转载于:https://my.oschina.net/ouminzy/blog/2980319

你可能感兴趣的:(factory.NoSuchBeanDefinitionException: No qualifying bean of type)