Description:
Field iClassScheduleService in org.jeecg.modules.manager.item.controller.RegistrationController required a bean of type ‘org.jeecg.modules.manager.item.service.IClassScheduleService’ that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type ‘org.jeecg.modules.manager.item.service.IClassScheduleService’ in your configuration.
解决方法:
找到com.stylefeng.guns.modular.certification.service.IRealNameService实现类,在实现类加上累注解@Service
这两天遇到两次这个问题了 总结一下 :
出现这种情况是它找不到@Service注解,究其原因
1.IStudentService 和StudentServiceImpl 这两个名字写错了
2.@Service写错地方了 正常是写在StudentServiceImpl 里面的



最后三张也是解决方法 很简单的问题粗心大意了
博客主要围绕Java中找不到@Service注解的问题展开。描述了在Spring框架里注入服务时找不到对应bean的情况,分析原因包括类名写错、@Service注解位置错误等,并给出解决办法,如在实现类上加@Service注解。
6026





