使用MyBatis-Plus时,getById()方法总是返回null,日志报“Warn: Could not find @TableId in Class: com.tp.entity.User.”
今天第一次尝试使用MyBatis-Plus时,发现在UserController中使用userService.getById(id)无法得到数据,查看控制台的日志,发现日志中有一条警告2020-09-04 17:36:41.802 WARN 16036 --- [ restartedMain] c.b.m.core.metadata.TableInfoHelper : Warn: Could not find @TableId in Class: com.tp.entity.User.。然后查看User实
原创
2020-09-04 18:02:09 ·
13896 阅读 ·
0 评论