阅读背景:

配置ssm项目报错:No qualifying bean of type ... found for dependency ...expected at least 1 bean which

来源:互联网 
配置ssm项目时,提示提示在service层注入出错,出错信息如下:大致的错误信息为:

cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘studentController’: Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘studentServiceImpl’: Unsatisfied dependency expressed through field ‘studentMapper’: No qualifying bean of type [com.csair.student.dao.StudentMapper] found for dependency [com.csair.student.dao.StudentMapper]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: cancell




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: