Error creating bean with name 'xxx': Unsatisfied dependency expressed through field 'xxx': Error creating bean with name 'xxx': Unsatisfied dependency expressed through field 'xxx': No qualifying bean of type 'xxx' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
原因:spring boot 3.0.0版本不兼容mybatis-plus,总而言之就是版本问题
解决方法:将版本改为2.5.0即可
自己常用的mybatis-plus依赖为:
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.4.1</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.1.23 </version>
</dependency>