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 Top answer 1 of 2
6
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
2 of 2
0
No worry option would be adding
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webflux</artifactId>
</dependency>
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.
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 ...
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
Call: +917738666252
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>
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.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.