当我在WebClientOptions中设置.setShared(true(时,我得到了以下信息:
java.lang.ClassCastException: class io.vertx.core.http.impl.SharedHttpClient cannot be cast to class io.vertx.core.http.impl.HttpClientImpl (io.vertx.core.http.impl.SharedHttpClient and io.vertx.core.http.impl.HttpClientImpl are in unnamed module of loader 'app')
在https://github.com/vert-x3/vertx-web/issues/2165
只需将vertx-web版本更新到4.2.8或更高的