반응형
list.stream().sorted(Comparator.comparing(DTO::getId)).collect(Collectors.toList())
반응형
'자바' 카테고리의 다른 글
API 문서 자동화 - Swagger (0) | 2022.08.19 |
---|---|
SptringBoot Rest Api Exception (0) | 2022.05.31 |
자바 dto,vo 리스트 정렬 list sort (0) | 2022.04.21 |
string을 VO로 변환, json을 VO로 변환 (0) | 2022.01.26 |
자바 스택/리스트 (0) | 2020.06.24 |
댓글