将ResourcesgetResourceAsStream(resource);改为
Resources.class.getResourceAsStream(resource);
//得到配置文件流
InputStream inputStream = Resources.class.getResourceAsStream(resource);
将ResourcesgetResourceAsStream(resource);改为
Resources.class.getResourceAsStream(resource);
//得到配置文件流
InputStream inputStream = Resources.class.getResourceAsStream(resource);