获取配置文件信息,读取json文件

获取resources目录下stencilset.json文件信息

如同标题,把stencilset.json放到resources目录下

		InputStream stencilsetStream = this.getClass().getClassLoader().getResourceAsStream("stencilset.json");
	    try {
	      return IOUtils.toString(stencilsetStream);
	    } catch (Exception e) {
	      throw new ActivitiException("Error while loading stencil set", e);
	    }

你可能感兴趣的:(后端)