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"); 后,解決問題。
2019-07-18
id沒有設置自增?