导航菜单
路很长,又很短
博主信息
昵   称:Cocodroid ->关于我
Q     Q:2531075716
博文数:297
阅读量:604831
访问量:56576
至今:
×
云标签 标签球>>
云标签 - Su的技术博客
博文->>首页 博主的更多博文>>
Could not autowire method: public void XXXXX,注入不成功
Tags : Spring,Inject发表时间: 2014-11-01 10:44:59
原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。
比如: 转自:Su的技术博客  原文地址:

SEVERE: Context initialization failed

org.springframework.beans.factory.BeanCreationException:

Error creating bean with name 'friendLinkController':

Injection of autowired dependencies failed;

nested exception is java.lang.IllegalArgumentException:

argument type mismatch

Caused by: org.springframework.beans.factory.BeanCreationException:

 Could not autowire method:public void com.verysu.blog.controller.

FriendLinkController.setFlinkService(com.verysu.blog.service.FriendLinkService);

nested exception is java.lang.IllegalArgumentException: argument type mismatch

... 64 more

Caused by: java.lang.IllegalArgumentException: argument type misma

at org.springframework.beans.factory.annotation.AutowiredAnnotati

BeanPostProcessor$AutowiredMethodElement.inject

(AutowiredAnnotationBeanPostProcessor.java:586)

... 66 more

org.springframework.beans.factory.BeanCreationException:

Error creating bean with name 'friendLinkController':

Injection of autowired dependencies failed;

nested exception is org.springframework.beans.factory.BeanCreationException:

 Could not autowire method: public void com.verysu.blog.controller.

FriendLinkController.setFlinkService(com.verysu.blog.service.

FriendLinkService); nested exception is java.lang.IllegalArgumentException:

 argument type mismatch

at org.springframework.beans.factory.annotation.AutowiredAnnota

tionBeanPostProcessor.postProcessPropertyValues

(AutowiredAnnotationBeanPostProcessor.java:287)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory

.populateBean(AbstractAutowireCapableBeanFactory.java:1106)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.

doCreateBean(AbstractAutowireCapableBeanFactory.java:517)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.

createBean(AbstractAutowireCapableBeanFactory.java:456)

at org.springframework.beans.factory.support.AbstractBeanFactory$1.

getObject(AbstractBeanFactory.java:294)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.

getSingleton(DefaultSingletonBeanRegistry.java:225)

at org.springframework.beans.factory.support.AbstractBeanFactory.

doGetBean(AbstractBeanFactory.java:291)

at org.springframework.beans.factory.support.AbstractBeanFactory

.getBean(AbstractBeanFactory.java:193)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.

preInstantiateSingletons(DefaultListableBeanFactory.java:585)

at org.springframework.context.support.AbstractApplicationContext.

finishBeanFactoryInitialization(AbstractApplicationContext.java:913)

at org.springframework.context.support.AbstractApplicationContext.

refresh(AbstractApplicationContext.java:464)

at org.springframework.web.context.ContextLoader

.configureAndRefreshWebApplicationContext(ContextLoader.java:385)

at org.eclipse.jetty.util.component.ContainerLifeCycle.

doStart(ContainerLifeCycle.java:114)

Caused by: 

org.springframework.beans.factory.BeanCreationException:

Could not autowire method: public void com.verysu.blog.controller.

FriendLinkController.setFlinkService(com.verysu.blog.service.FriendLinkService);

 nested exception is java.lang.IllegalArgumentException: argument type mismatch

。。。。。。。。。。

(function() { var s = "_" + Math.random().toString(36).slice(2); document.write('

'); (window.slotbydup = window.slotbydup || []).push({ id: "u3110434", container: s }); })();
打赏
打赏
关注公众号
公众号
类别:Java| 阅读(2306)| 赞 (2)
评论
暂无评论!
发表评论
昵  称:

验证码:

内  容:

    同时赞一个 赞