项目发给我,来看看。等你回复
解决了吗??应该是你的@Service没有扫描进去吧,试试看改一下<context:component-scan base-package="”/>,下面有个示例: <context:component-scan base-package=" com.bioeh.hm.bsp.biz.*, com.bioeh.sp.hm.bsp.biz.*.business, com.bioeh.sp.hm.bsp.biz.*.service, com.bioeh.sp.hm.doctor.biz.*.business, com.bioeh.sp.hm.doctor.biz.*.service, com.bioeh.mongo.tool.service.*, com.bioeh.hm.servive.record.biz.service.*, com.bioeh.hm.servive.record.service.*, com.bioeh.sp.hm.*.biz.service, com.bioeh.sp.hm.*.biz.business, com.bioeh.sp.hm.im.*.impl " />
你的接口定义成了private?
淡定aaaaaaaaaaaaa
如果包名也没错,检查web.xml,是不是配置文件都加载了,
既然都加了注解,配置文件也没错,就检查下包名是不是写错了
@Service("PayService")
把你的web.xml贴出来看看
该不会是jar包引入异常了吧
67,513
社区成员
225,879
社区内容
加载中
试试用AI创作助手写篇文章吧