You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2022-10-26 00:22:11.824 [ERROR][restartedMain][org.springframework.boot.SpringApplication(reportFailure:841)] Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'examController': Unsatisfied dependency expressed through field 'examService': Error creating bean with name 'examServiceImp': Unsatisfied dependency expressed through field 'baseMapper': No qualifying bean of type 'com.example.demo.exam.mapper.ExamMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:743)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:723)
The text was updated successfully, but these errors were encountered:
当前使用版本(必填,否则不予处理)
mybatis-plus-boot-starter 3.5.2
该问题是如何引起的?(确定最新版也有问题再提!!!)
springboot从2.7.4升级到最新版3.0.0-M5后
重现步骤(如果有就写完整)
springboot为2.7.4时,项目一切正常,今天将springboot升级到最新版3.0.0-M5后启动报错
报错信息
2022-10-26 00:22:11.824 [ERROR][restartedMain][org.springframework.boot.SpringApplication(reportFailure:841)] Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'examController': Unsatisfied dependency expressed through field 'examService': Error creating bean with name 'examServiceImp': Unsatisfied dependency expressed through field 'baseMapper': No qualifying bean of type 'com.example.demo.exam.mapper.ExamMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:743)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:723)
The text was updated successfully, but these errors were encountered: