增加@MapperScan注解的时候,导入包为import tk.mybatis.spring.annotation.MapperScan;
不要选择 org.mybaties.spring.annotation.MapperScan
反省: Mybaties和springboot集成的知识还是理解的不透彻,熟悉
springBoot-tk.mybatis.mapper.MapperException: 无法获取实体类com.example.demo.entity.SysUser对应的表名!
阅读 56
2022-07-12
增加@MapperScan注解的时候,导入包为import tk.mybatis.spring.annotation.MapperScan;
不要选择 org.mybaties.spring.annotation.MapperScan
反省: Mybaties和springboot集成的知识还是理解的不透彻,熟悉
相关推荐
精彩评论(0)