springBoot-tk.mybatis.mapper.MapperException: 无法获取实体类com.example.demo.entity.SysUser对应的表名!

增加@MapperScan注解的时候,导入包为import tk.mybatis.spring.annotation.MapperScan;

不要选择 org.mybaties.spring.annotation.MapperScan


反省: Mybaties和springboot集成的知识还是理解的不透彻,熟悉


猜你喜欢

转载自blog.csdn.net/qq_35394891/article/details/80280361