Не удалось создать экземпляр [org.springframework.boot.http.client.clienthttprequestfactorybuilder]JAVA

Программисты JAVA общаются здесь
Anonymous
Не удалось создать экземпляр [org.springframework.boot.http.client.clienthttprequestfactorybuilder]

Сообщение Anonymous »

У меня была обновленная версия Spring Boot до 3.4.1. Я также использую Spring-Cloud-Contract-Wiremock и httpclient5. У меня эта конфигурация RestClient. < /P>
ClientHttpRequestFactory factory = new BufferingClientHttpRequestFactory(requestFactory);
return RestClient.builder().requestFactory(factory)
.requestInterceptors(interceptors -> interceptors.addAll(
List.of(new ClientHttpRequestInterceptor(),
new RequestResponseLoggingInterceptor())))
.build();
< /code>
При запуске прикладных тестов я получаю это: < /p>

Чтобы создать экземпляр [org.springframework.boot.http.client.clienthttprequestfactorybuilder]: фабричный метод 'clienthttprequestfactorybuilder' выбросил исключение: org/apache/hc/client5/http/ssl/tlssocketrategrategy hc/bloctp/htttp/ssl/tlssocketStrategrategy>

Подробнее здесь: https://stackoverflow.com/questions/793 ... requestfac

Вернуться в «JAVA»