Spring data的更新使用BeanUtils.copyProperties

经常使用的Spring data的更新思路:spring  先查询出持久化对象,而后合并properties,再save。工具 BeanUtils.copyProperties(source,targe); targe.setUpdateUserId(userId); targe.setUpdateUserName(userName); targe.
相关文章
相关标签/搜索