Could not copy property 'id' from source to target 前端报未知错误
我在 BeanUtils.copyProperties(userModel, userDO); 中报了 Could not copy property 'id' from source to target 的错误 debug发现userModel的id为null 改为 BeanUtils.copyProperties(userModel, userDO, "id"); 后,解决问题。