提交 b6cbe3c8 编写于 作者: L liulei06

commit

上级 a327b639
......@@ -78,6 +78,7 @@ public class AutoRefreshService {
this.getAllArticleUrl();
long i = 1;
while (true){
try {
System.out.println("第" + i + "遍访问开始");
allArticleUrl.parallelStream().forEach(articleUrl -> {
ResponseEntity<String> forEntity = new RestTemplate().getForEntity(articleUrl, String.class);
......@@ -90,6 +91,9 @@ public class AutoRefreshService {
this.getAllArticleUrl();
}
i++;
}catch (Exception e){
System.out.println(e.getMessage());
}
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册