对象转字段的[]
Long[] roleIds = sysRoleList.stream().map(SysRole::getId).toArray(Long[]::new); *// 转为 Long 数组*
← 有socket为什么还用websocket java里flush()什么作用→