Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/394.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/elixir/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Completable Future是否在内部使用ReactiveRequest?_Java_Spring_Spring Boot - Fatal编程技术网

Java Completable Future是否在内部使用ReactiveRequest?

Java Completable Future是否在内部使用ReactiveRequest?,java,spring,spring-boot,Java,Spring,Spring Boot,我的代码使用Completable Future进行异步编程。 这里的问题是CompletableFuture是否在内部使用来自 jetty:jetty反应式httpclient依赖关系。 因为我不愿意使用此依赖项。不,绑定在JDK本身中,对任何外部jar都没有任何依赖性。好的……您能告诉我Completable future如何在内部使用org.eclipse.jetty.reactive.client.ReactiveRequest吗……因为在我的代码中,Completable future

我的代码使用Completable Future进行异步编程。 这里的问题是CompletableFuture是否在内部使用来自 jetty:jetty反应式httpclient依赖关系。
因为我不愿意使用此依赖项。

不,绑定在JDK本身中,对任何外部jar都没有任何依赖性。

好的……您能告诉我Completable future如何在内部使用org.eclipse.jetty.reactive.client.ReactiveRequest吗……因为在我的代码中,Completable future使用它。正如我前面所说的,Completable future对任何外部jar都没有依赖性类,而不是JDK本身中的类。是什么让你相信CompletableFuture在内部使用了
org.eclipse.jetty.reactive.client.ReactiveRequest
?是的,CompletableFuture没有使用它……但我很确定它正在被WebClient使用……这是真的吗???@harsh你说的“被WebClient使用”是什么意思?其他库,不管是哪一个库,都可能使用
CompletableFuture
,但是
CompletableFuture
完全包含在JDK中。简单提示,如果不包含此类依赖项,您的代码会编译吗?