org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'manageImageAction': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.allwincredit.app.service.zhongcai.ZhongcaiService com.allwincredit.app.action.ManageImageAction.zhongcaiService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'zhongcaiServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.allwincredit.app.service.signcontract.SignContractService com.allwincredit.app.service.zhongcai.ZhongcaiServiceImpl.signContractService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'signContractServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.allwincredit.app.service.signcontract.SignContractService com.allwincredit.app.service.signcontract.SignContractServiceImpl.signContractService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.allwincredit.app.service.signcontract.SignContractService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
找到原因:
错误原因:自己注入自己。删掉这一句即可