@TableField(updateStrategy= FieldStrategy.IGNORED) 在entity上面加上如上字段即可, teacher.setTeacherOpenid(null);