URL url = this.getClass().getResource("xxx"); URLConnection urlConnection = url.openConnection(); urlConnection.setUseCaches(false); InputStream inputStream = urlConnection.getInputStream();
读取jar包的文件,有缓存的问题
最新推荐文章于 2022-10-25 09:47:36 发布
URL url = this.getClass().getResource("xxx"); URLConnection urlConnection = url.openConnection(); urlConnection.setUseCaches(false); InputStream inputStream = urlConnection.getInputStream();