springboot 是用的3.2.4版本,mybatilsplus是用的3.5.3版本,依赖是下面这个版本:
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<vsrsion>3.5.3</version>
</dependency>
启动时报错:Invalid value type for attribute ‘factoryBeanObjectType‘: java.lang.String
通过debug和网上查资料发现应该是mybaitsplus版本问题,升级mybaitsplus到3.5.5后正常,但是要注意两个不只是版本差别,artifactId中也有差别,mybatis-plus-boot3-starter是下载不下来的,正确名称是mybatis-plus-spring-boot3-starter,中间还多了一个spring。
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-spring-boot3-starter</artifactId>
<vsrsion>3.5.5</version>
</dependency>