网址转为InputStream
2022-03-10 本文已影响0人
wsj1211
URL url = new URL(nginxUrl + templateHtml.getPcHtml());
HttpURLConnection httpUrl = (HttpURLConnection) url.openConnection();
InputStream is = httpUrl.getInputStream();