hoge66的专栏

-----------------------看到专栏,偷着笑!
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Cannot find class for bean with name service

Posted on 2015-11-30 13:47  hehoge  阅读(1031)  评论(0编辑  收藏  举报

Cannot find class [com.jx.p2p.service.impl.LazyInvestServiceImpl] for bean with name 'service' defined in class path resource [applicationContext.xml]; 

爆出这样的错误,深入类里,没发现问题啊@!

原因:

没有在容器里注入,那就是没有绑定tomcat了,直接在buildpath 中增加 runtime server 没想到竟然好了!