You need to include reactor-netty on the classpath. As by default that is the HTTP client used by WebClient.

pom.xml:

<dependency>
    <groupId>io.projectreactor.netty</groupId>
    <artifactId>reactor-netty</artifactId>
</dependency>

More info: https://docs.spring.io/spring/docs/current/spring-framework-reference/web-reactive.html#webflux-client

Answer from Martin Tarjányi on Stack Overflow
🌐
Jar-Download
jar-download.com › home › org.springframework › spring-webflux › 5.0.2.release › source code › webclient.java
org.springframework.web.reactive.function.client.WebClient Maven / Gradle / Ivy
org.springframework.web.reactive.function.client.WebClient maven / gradle build tool code. The class is part of the package ➦ Group: org.springframework ➦ Artifact: spring-webflux ➦ Version: 5.0.2.RELEASE
🌐
Baeldung
baeldung.com › home › spring › spring web › spring webclient
Spring WebClient | Baeldung
November 25, 2025 - Since we are using a Spring Boot application, all we need is the spring-boot-starter-webflux dependency to obtain Spring Framework’s Reactive Web support. Let’s add the following dependencies to the pom.xml file: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-webflux</artifactId> <version>3.5.7</vesion> </dependency>
Discussions

spring boot - Webclient maven Dependency errors - Stack Overflow
I am getting a NoClassDefFoundError on the line where I try to create WebClient instance using 'create'. Tried builder() but still the same thing. Please tell me what's wrong with the dependencies ... More on stackoverflow.com
🌐 stackoverflow.com
maven - Could not resolve dependencies for spring-web-reactive - Stack Overflow
Communities for your favorite technologies. Explore all Collectives · Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work More on stackoverflow.com
🌐 stackoverflow.com
spring boot - Bean of type 'org.springframework.web.reactive.function.client.WebClient' that could not be found - Stack Overflow
Communities for your favorite technologies. Explore all Collectives · Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work More on stackoverflow.com
🌐 stackoverflow.com
Correct dependencies to use when using WebClient with Spring MVC - Stack Overflow
I'm using Spring MVC to develop some controllers. I would like to write some scenario integration tests which will involve calling multiple controllers of my application. Normally I would have just... More on stackoverflow.com
🌐 stackoverflow.com
🌐
Spring
docs.spring.io › spring-framework › docs › current › javadoc-api › org › springframework › web › reactive › function › client › WebClient.html
WebClient (Spring Framework 7.0.9 API)
Non-blocking, reactive client to perform HTTP requests, exposing a fluent, reactive API over underlying HTTP client libraries such as Reactor Netty. Use static factory methods create() or create(String), or builder() to prepare an instance. ... A mutable builder for creating a WebClient.
🌐
Spring
spring.io › guides › gs › reactive-rest-service
Getting Started | Building a Reactive RESTful Web Service
We use a WebClient-based implementation to consume our RESTful service: ... Copypackage com.example.reactivewebservice; import reactor.core.publisher.Mono; import org.springframework.http.MediaType; import org.springframework.stereotype.Component; import org.springframework.web.reactive.function.client.WebClient; @Component public class GreetingClient { private final WebClient client; // Spring Boot auto-configures a WebClient.Builder instance with nice defaults and customizations.
🌐
GeeksforGeeks
geeksforgeeks.org › springboot › spring-boot-webclient-with-example
Spring Boot - WebClient with Example - GeeksforGeeks
July 23, 2025 - package com.gfg.employeaap.configuration; import org.modelmapper.ModelMapper; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.reactive.function.client.WebClient; @Configuration public class EmployeeConfig { @Value("${addressservice.base.url}") private String addressBaseUrl; @Bean public ModelMapper modelMapperBean() { return new ModelMapper(); } @Bean public WebClient webClient() { return WebClient.builder().baseUrl(addressBaseUrl).build(); } }
🌐
josdem
josdem.io › home › spring boot web client
Spring Boot WebClient -
July 25, 2024 - <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.jos.dem.springboot</groupId> <artifactId>weblcient</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging> <name>spring-boot-webclient</name> <description>Shows how to use reactive client WebClient in a Spring Boot application</description> <parent> <groupId>org.springframework.boot</group
Find elsewhere
🌐
Jar-Download
jar-download.com › home › org.springframework.boot › spring-boot › 2.0.0.release › source code › webclientcustomizer.java
org.springframework.boot.web.reactive.function.client.WebClientCustomizer Maven / Gradle / Ivy
All Downloads are FREE. Search and download functionalities are using the official Maven repository. Log In · Register · Home · org.springframework.boot · spring-boot · 2.0.0.RELEASE · source code · WebClientCustomizer.java · Please wait. This can take some minutes ...
🌐
OneUptime
oneuptime.com › home › blog › how to build reactive http clients with webclient in spring
How to Build Reactive HTTP Clients with WebClient in Spring
January 25, 2026 - package com.example.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.http.HttpHeaders; import org.springframework.http.MediaType; import org.springframework.web.reactive.function.client.WebClient; @Configuration public class WebClientConfig { @Bean public WebClient userServiceClient() { return WebClient.builder() // Set the base URL for all requests .baseUrl("https://api.users.example.com") // Add default headers that apply to all requests .defaultHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE) .defaultHeader(HttpHeaders.ACCEPT, MediaType.APPLICATION_JSON_VALUE) // Add an API key header for authentication .defaultHeader("X-API-Key", System.getenv("USER_SERVICE_API_KEY")) .build(); } }
🌐
Maven Repository
mvnrepository.com › artifact › org.springframework › spring-web-reactive › 5.0.0.M1
Maven Repository: org.springframework » spring-web-reactive » 5.0.0.M1
HTTP Clients · Language Runtime · Logging Bridges · Dependency Injection · XML Processing · Web Frameworks · Android Platform · Concurrency Libraries · Defect Detection Metadata · Code Generators · Top Categories · Home » org.springframework » spring-web-reactive » 5.0.0.M1 · Spring Web Reactive · Note: There is a new version for this artifact · Maven ·
🌐
Spring Framework Guru
springframework.guru › home › how to use the spring reactive webclient
How to Use the Spring Reactive WebClient - Spring Framework Guru
October 21, 2024 - The API consumer is a Spring Boot project that uses WebFlux. The consumer communicates with two services: OMDB API to retrieve movie information by name, and ID. Our local Producer to consume event streams.
🌐
Stefankreidel
stefankreidel.io › blog › spring-webmvc-with-webclient
Spring Web MVC + WebClient: How they work Together – Stefan Kreidel
Just like with RestTemplate, there is no auto-configured WebClient bean provided by default. A minimal configuration to create one can look as follows: import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.reactive.function.client.WebClient; @Configuration public class WebClientConfiguration { @Bean public WebClient webClient() { return WebClient.create(); } }
🌐
KapreSoft
kapresoft.com › java › 2023 › 10 › 17 › spring-reactive-webclient-combining-calls.html
Spring Reactive • Best Practice for Combining Calls with WebClient | KapreSoft
October 17, 2023 - We’ll begin by creating a service that fetches product information using WebClient. import org.springframework.stereotype.Service; import org.springframework.web.reactive.function.client.WebClient; import reactor.core.publisher.Mono; @Service public class ProductService { private final WebClient webClient; public ProductService(WebClient.Builder webClientBuilder) { this.webClient = webClientBuilder.baseUrl("https://productservice.example.com").build(); } public Mono<Product> getProductById(String id) { return webClient.get() .uri("/products/{id}", id) .retrieve() .bodyToMono(Product.class); } }
🌐
Spring
spring.academy › guides › spring-webclient-gs
Getting Started with Spring WebClient
Register · Log In · Spring Academy · Loading · Guides|Courses|Learning Paths|Community|Instructors|About|Give Feedback · Contact|FAQs|Terms|Privacy|Your California Privacy Rights · Unlock your full potential with Spring courses designed by experts · Copyright © 2005-2026 Broadcom.
🌐
GitHub
github.com › spring-projects › spring-framework › blob › main › spring-webflux › src › main › java › org › springframework › web › reactive › function › client › WebClient.java
spring-framework/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/WebClient.java at main · spring-projects/spring-framework
import org.springframework.web.util.UriBuilderFactory; · /** * Non-blocking, reactive client to perform HTTP requests, exposing a fluent, * reactive API over underlying HTTP client libraries such as Reactor Netty. * * <p>Use static factory methods {@link #create()} or {@link #create(String)}, * or {@link WebClient#builder()} to prepare an instance.
🌐
Atlassian Community
community.atlassian.com › q&a › jira › questions › classnotfoundexception:org.springframework.web.reactive.function.client.webclient$builder not found
Solved: ClassNotFoundException:org.springframework.web.rea...
October 13, 2023 - ClassNotFoundException:org.springframework.web.reactive.function.client.WebClient$Builder not found · Anil Mishra · Contributor · October 10, 2023 edited · Hi Community, I'm trying to use spring webflux jar in my custom plugin, have added dependency in pom as well but getting class not found error during run time ·
🌐
Medium
medium.com › @sarthakagrawal.work › implementing-a-web-client-with-in-spring-boot-97889b780095
Implementing a Web Client with in Spring Boot | by Sarthak Agrawal | Medium
April 10, 2024 - Step 2: Create a Generic Web Client Configuration: Create a configuration class to set up the WebClient bean in your Spring Boot application. This class should be annotated with @Configuration and @EnableWebFlux. Here's an example: import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.reactive.function.client.ExchangeFilterFunction; import org.springframework.web.reactive.function.client.WebClient; @Configuration @EnableWebFlux public class WebClientConfig { @Bean public WebClient webClient() { return Web