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 - 2018-06-15 22:55:38.550 INFO 1454 --- [NettyWebServer : Netty started on port(s): 8080 2018-06-15 22:55:38.554 INFO 1454 --- [DemoApplication : Started DemoApplication com.jos.dem.springboot.webclient.model.Beverage@1304ec8d ... You can do the same using Maven, the only difference is that you need to specify --build=maven parameter in the spring init command line: spring init --dependencies=webflux,lombok --language=maven --build=gradle spring-boot-webclient
🌐
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 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.
🌐
Maven Repository
mvnrepository.com › artifact › org.springframework › spring-webflux
Maven Repository: org.springframework » spring-webflux
August 20, 2026 - Current Group · Group · Spring Framework · org.springframework · Description · Spring Framework is a popular application development framework for Java · Links · Related Categories · Web Frameworks · Web Testing
🌐
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).
🌐
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.
🌐
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 - To start using WebClient, you need to add the required dependencies to your pom.xml (if you’re using Maven):
🌐
Jar-download
jar-download.com › maven-repository-class-search.php
Download dependencies for java class org.springframework.web.reactive.function.client.WebClient.
Here you can download the dependencies for the java class org.springframework.web.reactive.function.client.WebClient.. Use this engine to looking through the maven repository.
Find elsewhere
🌐
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
🌐
Maven Central Repository
search.maven.org › com.integralblue › java-httpclient-webclient-spring-boot-starter › 1.0.0
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>
🌐
Helidon
helidon.io › docs › v4 › se › webclient
WebClient - Helidon Documentation
To enable WebClient, add the following dependency to your project’s pom.xml (see Managing Dependencies).
🌐
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
🌐
Craig Andrews
candrews.integralblue.com › home › java-httpclient-webclient-spring-boot-starter: powering spring’s webclient with java 11’s httpclient
java-httpclient-webclient-spring-boot-starter: Powering Spring's WebClient with Java 11's HttpClient - Craig Andrews
October 13, 2020 - java-httpclient-webclient-spring-boot-starter is a library that I created to provide a quick and easy way to use Java 11’s HttpClient as Spring’s WebClient‘s client HTTP connector. If you’re using Spring Boot 2.3 or later, it’s worth checking out. The library is in Maven Central so it’s easy to incorporate into any new or existing proejct regardless of your choice to use Gradle, Maven, or another dependency management / build system.
🌐
GitHub
github.com › spring-projects › spring-boot › issues › 34198
How can I get a WebClient without a required dependency to any web server? · Issue #34198 · spring-projects/spring-boot
February 15, 2023 - If you checkout the commit with tag "no-server-error" and run the same maven command, you'll get the error above saying that there is no ReactiveWebServerFactory. I don't need the WebServer, only the Flux WebClient.
Author: spring-projects
🌐
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>
🌐
Maven Central
central.sonatype.com › artifact › com.graphql-java-kickstart › graphql-webclient
com.graphql-java-kickstart:graphql-webclient - Maven Central
<dependency> <groupId>com.graphql-java-kickstart</groupId> <artifactId>graphql-webclient</artifactId> <version>2.1.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 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <groupId>com.graphql-java-kickstart</groupId> <artifactId>graphql-webclient</artifactId> <version>2.1.0</version> <name>graphql-spring-webclient</name> <descr
🌐
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.
🌐
Stefankreidel
stefankreidel.io › blog › spring-webmvc-with-webclient
Spring Web MVC + WebClient: How they work Together – Stefan Kreidel
Combining Spring Web MVC and WebClient on a code level is pretty straight forward to get started, although, it is admittedly not intuitive at first: // build.gradle.kts plugins { java id("org.springframework.boot") version "3.0.5" id("io.spring.dependency-management") version "1.1.0" } repositories { mavenCentral() } dependencies { implementation("org.springframework.boot:spring-boot-starter-web") implementation("org.springframework.boot:spring-boot-starter-webflux") }