服务器启动程序报错:所有spring的bean都无法注入。

荒人 2017-01-24 06:43:00
做银行项目,框架里有spring ,启动后台服务报错如下(部分)

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountCreateActionCZ': Cannot create inner bean 'accountCreateActionCZ' of type [com.bocom.bbip.heefss.action.cz.AccountAction] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountCreateActionCZ#1': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.bocom.bbip.comp.BBIPPublicService com.bocom.bbip.heefss.action.cz.AccountAction.bbipPublicService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'queryAccountDeleteActionCZ': Cannot create inner bean 'queryAccountDeleteActionCZ' of type [com.bocom.bbip.heefss.action.cz.QueryAccountDeleteAction] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'queryAccountDeleteActionCZ#1': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.bocom.bbip.comp.account.AccountService com.bocom.bbip.heefss.action.cz.QueryAccountDeleteAction.accountService;

求大神指点啊!
...全文
370 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
荒人 2017-01-31
  • 打赏
  • 举报
回复
感谢,问题解决了,有一个bean,service接口的实现类里有个没有写setter程序,但是bean里用的是property注入了值,
荒人 2017-01-25
  • 打赏
  • 举报
回复
试过了,没有用,那个只是个开始,我们新开发的项目上线时与其他项目在同一个项目下面,现在所有项目的bean都不合适,感觉是不是缺什么东西了?
X元素 2017-01-24
  • 打赏
  • 举报
回复
楼主试试 accountCreateActionCZ 下,所有 autowire的bean 批量注释掉, 然后一个一个打开。

50,530

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧