问题描述:
在使用spring集成ssh框架注解开发时,报org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [cn.itcast.bos.service.system.RoleService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}异常
原因:遇到这个错误时,是因为自己在写service层的时候,在service层的实现类中忘记添加@service注解
只要将注解加上就好了