使用mybatis-plus 时,实体类的 id 字段 没有加上 @TableId 注解时,出现的异常 Invalid bound statement (not found): com.xxxxx.xxxxx.mapper.UserRelMapper 原因:mybatis 无法映射到实体类的ID,没法调用byId方法,绑定失败。