尝试使用如下方式将第三方REST服务注册为一个服务然后使用rpc调用:
@POST
@Path("/rest.php")
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = String.class),
@ApiResponse(code = 302, message = "location", responseHeaders = {@ResponseHeader(name = "location", response = String.class)})
})
CompletableFuture<ResponseEntity<String>> verify(xxx);
但是调用结果是一个异常,且响应体为null(可能是因为响应体本身为空)。
是否有方法能够让rpc调用获取到location头的优雅方法?
尝试使用如下方式将第三方REST服务注册为一个服务然后使用rpc调用:
但是调用结果是一个异常,且响应体为null(可能是因为响应体本身为空)。
是否有方法能够让rpc调用获取到location头的优雅方法?