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
🌐
josdem
josdem.io › home › spring boot web client
Spring Boot WebClient -
July 25, 2024 - The WebClient should also be preferred in Spring MVC, in most high concurrency scenarios, and for composing a sequence of remote, inter-dependent calls. Let’s start creating a new project using this command: ... buildscript { ext { ...
🌐
Maven Central
central.sonatype.com › artifact › org.springframework.boot › spring-boot-starter-webclient
Maven Central: org.springframework.boot:spring-boot-starter-webclient
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-webclient</artifactId> <version>4.2.0-M1</version> </dependency> Copy to clipboard · <?xml version="1.0" encoding="UTF-8"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <!-- This module was also published with a richer model, Gradle metadata, --> <!-- which should be used instead.
🌐
Baeldung
baeldung.com › home › spring › spring web › spring webclient
Spring WebClient | Baeldung
November 25, 2025 - Simply put, WebClient is an interface representing the main entry point for performing web requests. It was created as part of the Spring Web Reactive module and will be replacing the classic RestTemplate in these scenarios.
🌐
GeeksforGeeks
geeksforgeeks.org › springboot › spring-boot-webclient-with-example
Spring Boot - WebClient with Example - GeeksforGeeks
July 23, 2025 - It is also the replacement for the classic RestTemplate. It is a part of spring-webflux library and also offers support for both synchronous and asynchronous operations. The DefaultWebClient class implements this WebClient interface. For Maven: Add this dependency to the pom.xml file.
🌐
Maven Repository
mvnrepository.com › artifact › org.springframework › spring-webflux
Maven Repository: org.springframework » spring-webflux
August 20, 2026 - Spring Framework is a popular application development framework for Java. ... Non-blocking web stack with support for 'Reactive Streams' back pressure, running on Netty, Undertow, and Servlet 3.1+ conts ... aar android apache api arm assets build build-system bundle client clojure cloud config data database eclipse example extension framework github gradle groovy io ios javascript jvm kotlin library logging macos maven ...
🌐
Medium
medium.com › @ayoubseddiki132 › mastering-webclient-in-spring-boot-a-complete-guide-31482263bc92
Mastering WebClient in Spring Boot: A Complete Guide | by Ayoub seddiki | Medium
January 29, 2025 - WebClient is a part of the Spring WebFlux module and provides a reactive, non-blocking API to perform HTTP requests. Unlike RestTemplate, which blocks the thread while waiting for a response, WebClient operates asynchronously, making it ideal ...
Find elsewhere
🌐
amitph
amitph.com › home › spring › introduction to spring webclient
Introduction to Spring WebClient - amitph
November 22, 2024 - In order to use WebClient in a Spring Boot Project we need add dependency on WebFlux library. Like any other Spring Boot dependencies, we have to add a starter dependency for WebFlux (spring-boot-starter-webflux).
🌐
GitHub
github.com › callicoder › spring-webclient-webtestclient-demo › blob › master › pom.xml
spring-webclient-webtestclient-demo/pom.xml at master · callicoder/spring-webclient-webtestclient-demo
</dependencies> · <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build> ·
Author: callicoder
🌐
GitHub
github.com › candrews › java-httpclient-webclient-spring-boot-starter
GitHub - candrews/java-httpclient-webclient-spring-boot-starter: JDK 11 HttpClient integration for Spring WebClient · GitHub
dependencies { runtimeOnly 'com.integralblue:java-httpclient-webclient-spring-boot-starter:VERSION' } For Maven: <dependency> <groupId>com.integralblue</groupId> <artifactId>java-httpclient-webclient-spring-boot-starter</artifactId> <version>VERSION</version> <scope>runtime</scope> </dependency> Follow the advice given in the Spring Boot documentation under Calling REST Services with WebClient when using WebClient by autowiring an instance of WebClient.Builder and using that to create the WebClient instance.
Author: candrews
🌐
EDUCBA
educba.com › home › software development › software development tutorials › spring tutorial › spring boot webclient
Spring Boot WebClient | Working and Example of Spring Boot WebClient
March 29, 2023 - Group – com.example Artifact ...webclient-example-master Packaging – Jar Java – 11 Dependencies – spring native, spring web, spring reactive web....
Address: Unit no. 202, Jay Antariksh Bldg, Makwana Road, Marol, Andheri (East),, 400059, Mumbai
🌐
Raphasil
raphasil.github.io › rest-client-generator › docs › client-spring-webclient
Spring Web Client - Rest Client Generator
<?xml version="1.0" encoding="UTF-8"?> <project> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-webflux</artifactId> </dependency> <dependency> <groupId>io.github.raphasil.rest-client-generator</groupId> <artifactId>webclient-generator-spring-boot-starter</artifactId> <version>0.0.1</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</version> <configuration> <annotationProcessorPaths> <path> <groupId>io.github.raphasil.rest-client-generator</groupId> <artifactId>webclient-processor</artifactId> <version>0.0.1</version> </path> </annotationProcessorPaths> </configuration> </plugin> </plugins> </build> </project>
🌐
Medium
medium.com › codetodeploy › detailed-explanation-of-webclient-in-spring-boot-a-modern-http-client-179ae26cf154
Detailed Explanation of WebClient in Spring Boot: A Modern HTTP Client 🚀 | by Umesh Kumar Yadav | CodeToDeploy | Medium
July 27, 2025 - First, you need to add the spring-boot-starter-webflux dependency to your project. Maven: <dependency> <groupId>org.springframework.boot</groupId>… · 5.4K followers · ·Last published 1 hour ago ·
🌐
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
🌐
Maven Central
central.sonatype.com › artifact › com.integralblue › java-httpclient-webclient-spring-boot-starter
com.integralblue:java-httpclient-webclient-spring-boot-starter
<dependency> <groupId>com.integralblue</groupId> <artifactId>java-httpclient-webclient-spring-boot-starter</artifactId> <version>1.0.0</version> </dependency> Copy to clipboard · <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <!-- This module was also published with a richer model, Gradle metadata, --> <!-- which should be used instead.
🌐
Spring
spring.io › guides › gs › reactive-rest-service
Getting Started | Building a Reactive RESTful Web Service
You can run the application from the command line with Gradle or Maven. You can also build a single executable JAR file that contains all the necessary dependencies, classes, and resources and run that.
🌐
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.
🌐
Stefankreidel
stefankreidel.io › blog › spring-webmvc-with-webclient
Spring Web MVC + WebClient: How they work Together – Stefan Kreidel
Combining Spring Web MVC and WebClient ...g.springframework.boot:spring-boot-starter-webflux") } You simply have to add both, Web and Webflux as dependencies....
🌐
Medium
manishkrb.medium.com › spring-webclient-7d6021634790
Spring WebClient - manisha bhardwaj - Medium
July 22, 2025 - WebClient is a non-blocking, reactive HTTP client introduced in Spring 5 as part of the WebFlux framework. It's intended to replace the older RestTemplate and works in both reactive and traditional (imperative) applications.