在springboot项目中使用通用mapper导致报错:tk.mybatis.mapper.MapperException:无法获取实体类xxx对应的表名!
原因:
@MapperScan注解要导入itk.mybatis.spring.annotation.MapperScan;
不要使用org.mybaties.spring.annotation.MapperScan。
在SpringBoot项目中使用通用Mapper出现错误,具体为无法获取实体类对应的表名。问题在于@MapperScan注解的导入路径错误,应使用itk.mybatis.spring.annotation.MapperScan而非org.mybaties.spring.annotation.MapperScan。
在springboot项目中使用通用mapper导致报错:tk.mybatis.mapper.MapperException:无法获取实体类xxx对应的表名!
原因:
@MapperScan注解要导入itk.mybatis.spring.annotation.MapperScan;
不要使用org.mybaties.spring.annotation.MapperScan。
转载于:https://my.oschina.net/u/3568600/blog/3066216
535
4348

被折叠的 条评论
为什么被折叠?