import net.sf.json.JSONObject
customVO customVO = new CustomVO();
Map<String, Class<CustomVO>> map = new HashMap<String, Class<CustomVO>>();
map.put("customVO", CustomVO.class); //map 의 key는 의미가 없는 것으로 보인다
customVO = (CustomVO)JSONObject.toBean(JSONString, CustomVO.class, map);
net.sf.json.JSONObject 패키지 임을 확인하자
'JAVA > SOURCECODE' 카테고리의 다른 글
Spring Boot ConfigurationProperties 설정 파일 (0) | 2022.03.12 |
---|---|
Generate Request (0) | 2021.11.04 |
jar 실행시 build 위치 추가 (0) | 2021.03.02 |
Spring Security HttpSecurity, WebSecurity 차이? (0) | 2019.11.08 |
윈도우 Active Directory 연동 (0) | 2019.11.01 |