问题

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>
Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐