spring注入失败,求解
2019-05-06 00:30:00,006 ERROR [org.springframework.scheduling.support.TaskUtils$LoggingErrorHandler] - Unexpected error occurred in scheduled task.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shopInfoServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.shanglang.resource.service.jms.sender.bench.customer.JmsBenchCustomerSender com.shanglang.goods.service.shop.ShopInfoServiceImpl.jmsBenchCustomerSender; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmsBenchCustomerSenderImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.shanglang.commons.jms.JmsSender com.shanglang.resource.service.jms.sender.bench.customer.JmsBenchCustomerSenderImpl.jmsCustomerSyncQueueSender; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.shanglang.commons.jms.JmsSender] 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), @org.springframework.beans.factory.annotation.Qualifier(value=jmsCustomerSyncQueueSender)}
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.shanglang.resource.service.jms.sender.bench.customer.JmsBenchCustomerSender com.shanglang.goods.service.shop.ShopInfoServiceImpl.jmsBenchCustomerSender; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmsBenchCustomerSenderImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.shanglang.commons.jms.JmsSender com.shanglang.resource.service.jms.sender.bench.customer.JmsBenchCustomerSenderImpl.jmsCustomerSyncQueueSender; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.shanglang.commons.jms.JmsSender] 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), @org.springframework.beans.factory.annotation.Qualifier(value=jmsCustomerSyncQueueSender)}
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmsBenchCustomerSenderImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.shanglang.commons.jms.JmsSender com.shanglang.resource.service.jms.sender.bench.customer.JmsBenchCustomerSenderImpl.jmsCustomerSyncQueueSender; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.shanglang.commons.jms.JmsSender] 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), @org.springframework.beans.factory.annotation.Qualifier(value=jmsCustomerSyncQueueSender)}