티스토리 뷰
- Java Model -> Map
JavaModel javaModel = new JavaModel();
Map<String,Object> param = new ObjectMapper().convertValue(javaModel, new TypeReference<Map<String,Object>>(){});
- Map -> Java Model
Map<string,Object> tmpMap = new HashMap<>()
JavaModel javaModel = new ObjectMapper().convertValue(tmpMap, JavaModel.class);
'개발(Dev) > (02) 서버 개발' 카테고리의 다른 글
(JAVA) java.util.stream 기능 (0) | 2020.06.02 |
---|---|
(Java) SFTP Client (0) | 2019.08.01 |
(Java) FTP Client (0) | 2019.08.01 |
(Java) bCript 암호화 (0) | 2019.08.01 |