2017-05-08 11 views

답변

0

ResourceUtils 클래스를 확인할 수 있습니다. 예를 들어 json 파일을 읽으려는 경우 :

private final static TypeReference<Map<String, String>> typeReference = new TypeReference<Map<String, String>>() { 
}; 
Map<String, String> map = 
mapper.readValue(ResourceUtils.getURL("classpath:some.json").openStream(), typeReference);