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的设置, 另外别忘了构造函数

    评论

报告相同问题?

悬赏问题

  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?