这是我从URL读取文件的代码。
URL url = new URL(urlString);
reader = new BufferedReader(new InputStreamReader(url.openStream()));
但问题是 -
java.io.IOException: Server returned HTTP response code: 502 for
URL: http://dbpedia.org/data/Germany.json
此错误不会每次都发生。有谁能够帮我?
答案 0 :(得分:1)