Spring Boot和java的兼容关系如下图所示,更多的Spring Boot和Spring、java、maven、Gradle
版本兼容问题可以参照博客:https://zhuanlan.zhihu.com/p/652895555
Spring Boot版本和mybatisplus版本不兼容会引发一些诸如下列的问题
1.Invalid value type for attribute 'factoryBeanObjectType': java.lang.String问题
2.Application run failed问题
3.SpringBoot使用Junit单元测试报错问题
4.Could not detect default configuration classes for test class问题
其中一种适配的版本是Spring Boot的3.1.6对应mybatisplus的3.5.5版本
Spring Boot中的parent版本以及mybatisplus版本坐标如下:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.1.6</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.5.5</version>
</dependency>
详细的问题说明可以查看下面的博客: