将对象的属性值复制到新对象中
今日在看jeegboot开源框架的登录校验的源码时,发现如下代码public LoginUser getUserByName(String username) { if(oConvertUtils.isEmpty(username)) { return null; } LoginUser loginUser = new LoginUser(); SysUser sysUser = userMapper.getUserByName(username); if(sysUser==null) {
原创
2020-11-30 15:38:21 ·
384 阅读 ·
0 评论