首页 > 其他 > 详细

No unique bean of type..... Unsatisfied dependency of type

时间:2014-03-21 03:01:58      阅读:575      评论:0      收藏:0      [点我收藏+]

比如在XXXServiceImpl里面写了aa()方法给别的地方调用

但是自己又调用了自己

在开头写了

@Autowired

Private XXX xxx;

xxx.aa();

这样重复调用自己的bean就发生错误

No unique bean of type..... Unsatisfied dependency of type,布布扣,bubuko.com

No unique bean of type..... Unsatisfied dependency of type

原文:http://www.cnblogs.com/kyxyes/p/3614647.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!