报错信息:
Error creating bean with name 'projectReservePoolController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.xuci.apply.service.IProjectReservePoolService' available: expected at least 1 bean which qualifies as autowire candidate.
报错截图:
解决方法:
XXXServiceImpl.java层加上注解@Service
解决思路:
待完善
额外知识:@Service注解是标注在实现类上的,因为@Service是把spring容器中的bean进行实例化,相当于new操作,只有实现类是可以进行new实例化的,接口不能。
-------------------------------------------------------------------------
来自小白的程序报错记录,后续会完善