factory.NoSuchBeanDefinitionException: No qualifying bean of type

個人錯誤緣由是 本身 引用了本身java

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 代碼裏面 spring

@Autowired app

RepayRecordGuaranteeInfoServicethis

引用了自身, 寫代碼寫亂了,,,code

相關文章
相關標籤/搜索