Cannot find class for bean with name service

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 没想到竟然好了!

原文地址:https://www.cnblogs.com/hoge/p/5006949.html