解决 MyBatis-Plus 更新对象无法设空值(含代码具体使用)
异常信息org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named ‘null’ in ‘class com.XXX.XXX.entity.XXX’原因因为 MyBatis-Plus 自带的更新方法,都有对对象空值进行判空。只有不为空的字段才会进行数据更新。