mybatis-plus报错Invalid bean definition with name ‘planeMapper‘ defined in file
·
问题
Invalid bean definition with name 'planeMapper' defined in file [D:\Desktop\ai_wei\projects\F-XA-01\code\f-xa-01-api\f-xa-01-api-server\target\classes\com\aiwei\server\mapper\PlaneMapper.class]: Invalid value type for attribute 'factoryBeanObjectType
原因&解决
依赖引入错误
我是用的是springboot3.x.x,应用mybatis-plus-spring-boot3-starter,而非mybatis-plus-boot-starter
错误:
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.5.5</version>
</dependency>
正确:
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-spring-boot3-starter</artifactId>
<version>3.5.5</version>
</dependency>
更多推荐
所有评论(0)