使用通用mapper时报错,tk.mybatis.mapper.MapperException:无法获取实体类xxx对应的表名!

在springboot项目中使用通用mapper导致报错:tk.mybatis.mapper.MapperException:无法获取实体类xxx对应的表名!

原因:

  @MapperScan注解要导入itk.mybatis.spring.annotation.MapperScan;不要使用org.mybaties.spring.annotation.MapperScan。

原文地址:https://www.cnblogs.com/guduershi/p/10833369.html