org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'saticScheduleTask': Unsatisfied dependency expressed through field 'zjdDaglJyService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'zjdDaglJyServiceImpl': Unsatisfied dependency expressed through field 'baseMapper'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.fw.base.mapper.ZjdDaglJyMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
时间: 2023-08-27 15:22:39 浏览: 147
spring3学习笔记
5星 · 资源好评率100%
这个问题看起来是一个 Spring 容器依赖注入的异常,具体来说是在创建名为 'saticScheduleTask' 的 bean 时,出现了 UnsatisfiedDependencyException 异常,因为它所依赖的 'zjdDaglJyService' 字段无法满足依赖关系。进一步嵌套的异常信息是,创建 'zjdDaglJyServiceImpl' bean 时,其依赖的 'baseMapper' 字段也无法满足依赖关系,因为没有找到一个类型为 'com.fw.base.mapper.ZjdDaglJyMapper' 的 bean,这意味着 Spring 容器中没有一个符合自动装配条件的 bean 可以注入到 'zjdDaglJyService' 字段中。
阅读全文