@Value("classpath:config/json/initproperties.json") private Resource initproperties; String jsontext = IOUtils.toString(initproperties.getInputStream(), "utf8"); List<Area> objectList = JSON.parseArray(jsontext, Area.class);
原文:https://www.cnblogs.com/sh-0131/p/14977740.html