摘要: 之前每次都是通过循环去写,感觉代码不够优雅,百度了一下,查到如下的写法,先记下来: List<Long> list = new ArrayList<Long>(); list.add(1L); list.add(2L); list.add(3L); System.out.println(list); 阅读全文
posted @ 2020-09-04 17:20 野狼谷 阅读(2817) 评论(0) 推荐(0)
摘要: 使用场景:用户角色一对多关联关系 <!-- roleList:所有角色信息 ;userRoleList:用户已有角色id列表--> <input th:each="role:${roleList}" type="checkbox" th:value="${role.id}" th:checked=" 阅读全文
posted @ 2020-09-04 17:03 野狼谷 阅读(1621) 评论(0) 推荐(0)