提交 e514f2fc authored 作者: 姜武杰's avatar 姜武杰

测试连接请求

上级 28ab5c8d
......@@ -97,6 +97,7 @@ public class TempController {
public Result<Void> saveOrderChildExpectTime(@RequestParam(value="type") Integer type) {
for (int i = 0; i < 1000; i++) {
// 多线程调用 HttpsUtils 请求 百度
int finalI = i;
new Thread(() -> {
try {
String result = null;
......@@ -105,7 +106,7 @@ public class TempController {
} else {
result = HttpsUtils.doPost("https://www.bing.com", "a=" + System.currentTimeMillis(), 30000, 50000);
}
log.info("========>type:{}, result:{}", type, result);
log.info("========>第{}个请求,type:{}, result:{}", finalI, type, result);
} catch (Exception e) {
log.info(e.getMessage(), e);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论