Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

springboot从2.7.4升级到最新版3.0.0-M5后项目启动报错 #4905

Closed
zqf425 opened this issue Oct 25, 2022 · 2 comments
Closed

springboot从2.7.4升级到最新版3.0.0-M5后项目启动报错 #4905

zqf425 opened this issue Oct 25, 2022 · 2 comments

Comments

@zqf425
Copy link

zqf425 commented Oct 25, 2022

当前使用版本(必填,否则不予处理)

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)

@linghengqian
Copy link
Contributor

@shuaizai88
Copy link

3.5.2.7-SNAPSHOT 升级这个版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants