spring注入失败,求解

Xpromise Xpromise 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
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)}
...全文
评论 3
收藏 已收藏
分享
返回顶部
Xpromise
Java 51,407 成员 86,136 内容