org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘com.hikvision.coal.test’: Unsatisfied dependency expressed through field ‘planInfoMapper’; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘com.hikvision.coal.mapper.PlanInfoMapper’ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

解决SpringBoot中出现org.springframework.beans.factory.UnsatisfiedDependencyException

解决方法

在mapper中PlanInfoMapper类下加入@Mapper注解

相关文章:

  • 2021-11-03
  • 2021-10-17
  • 2022-01-07
  • 2021-08-27
猜你喜欢
  • 2021-08-23
  • 2021-09-21
  • 2022-12-23
  • 2022-01-22
  • 2022-12-23
  • 2022-01-11
  • 2021-07-05
相关资源
相似解决方案