buyax 2017-08-15 07:46 采纳率: 53.3%
浏览 1091
已结题

哪位大神帮我看下,这是什么问题啊,说是不能注入这个类...

如题:

 org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'com.rjs.marketing.api.service.MarketingRestService':
Cannot resolve reference to bean 'marketingRestService' while setting bean property 'ref'; 
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'marketingRestService': 
Injection of autowired dependencies failed;
nested exception is org.springframework.beans.factory.BeanCreationException: 
Could not autowire field:
private com.rjs.marketing.app.service.MarketingService com.rjs.marketing.app.rest.MarketingRestServiceImpl.marketingService;
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'marketingService':
Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: 
Could not autowire field: 
com.rjs.marketing.app.service.task.RecommendService com.rjs.marketing.app.service.MarketingService.recommendService; 
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'recommendService':
Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Could not autowire field:
private com.rjs.marketing.app.vo.ServerConfig com.rjs.marketing.app.service.task.RecommendService.serverConfig; 
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'serverConfig' defined in class path resource [rjs-marketing-app_context.xml]: 
Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException:
Failed to convert property value of type 'java.lang.String' to required type 'java.util.List' for property 'pushConfig'; 
nested exception is java.lang.IllegalStateException:
Cannot convert value of type [java.lang.String] to required type [java.util.Map] for property 'pushConfig[0]':
no matching editors or conversion strategy found
  • 写回答

6条回答 默认 最新

  • Tsui丶 2017-08-15 07:56
    关注

    Error creating bean with name 'com.rjs.marketing.api.service.MarketingRestService':
    Cannot resolve reference to bean 'marketingRestService' while setting bean property 'ref';
    查看一下ref的设置, 另外别忘了构造函数

    评论

报告相同问题?

悬赏问题

  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?
  • ¥15 matlab(相关搜索:紧聚焦)
  • ¥15 基于51单片机的厨房煤气泄露检测报警系统设计