修改无限超时返回的报错
This commit is contained in:
parent
e85e026edd
commit
a563ba96c2
|
|
@ -21,8 +21,8 @@ public class IntelligentAnnotationServiceOkHttp {
|
|||
|
||||
private static final OkHttpClient client = new OkHttpClient.Builder()
|
||||
.connectTimeout(10, TimeUnit.SECONDS)
|
||||
.readTimeout(60, TimeUnit.SECONDS)
|
||||
.writeTimeout(60, TimeUnit.SECONDS).build();
|
||||
.readTimeout(0, TimeUnit.SECONDS)
|
||||
.writeTimeout(0, TimeUnit.SECONDS).build();
|
||||
|
||||
private static final ObjectMapper objectMapper = new ObjectMapper(); // 用于JSON序列化和反序列化
|
||||
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ public class IntelligentAnnotationServiceImpl implements IntelligentAnnotationSe
|
|||
log.error("远程调用智能标注服务,没有返回标注结果");
|
||||
return AjaxResult.error("智能标注失败");
|
||||
}
|
||||
|
||||
log.info("远程调用智能标注服务已返回");
|
||||
// 获取 annotations 的值
|
||||
Map<String, List<AnnotationResult.Annotation>> annotations = result.getAnnotations();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue