报Invalid value type for attribute ‘factoryBeanObjectType‘: java.lang.String错误

在springboot中使用Mybatis出现Invalid value type for attribute 'factoryBeanObjectType': java.lang.String

1、没有使用mybatis

检查pom文件里面的mybatis

可能是缺少这个依赖,或者版本过低

重新导入依赖

<dependency>
    <groupId>org.mybatis.spring.boot</groupId>
    <artifactId>mybatis-spring-boot-starter</artifactId>
    <version>3.0.0</version>
</dependency>