|
|
@ -95,8 +95,10 @@ public class KnowledgePointApplicationServiceImpl implements KnowledgePointAppli |
|
|
HttpEntity<MultiValueMap<String, Object>> requestEntity = |
|
|
HttpEntity<MultiValueMap<String, Object>> requestEntity = |
|
|
new HttpEntity<>(body, headers); |
|
|
new HttpEntity<>(body, headers); |
|
|
|
|
|
|
|
|
|
|
|
String heard = analysisHost.contains("vicp") ? "https" : "http"; |
|
|
|
|
|
|
|
|
ResponseEntity<String> response = |
|
|
ResponseEntity<String> response = |
|
|
restTemplate.postForEntity("http://"+analysisHost+":"+analysisPort+analysisUrl, requestEntity, String.class); |
|
|
restTemplate.postForEntity(heard + "://"+analysisHost+":"+analysisPort+analysisUrl, requestEntity, String.class); |
|
|
|
|
|
|
|
|
log.info("文件 [{}] 解析请求成功,返回结果:{}", file.getOriginalFilename(), response.getBody()); |
|
|
log.info("文件 [{}] 解析请求成功,返回结果:{}", file.getOriginalFilename(), response.getBody()); |
|
|
|
|
|
|
|
|
|