Search code examples
spring-bootdeploymentspring-webfluxwarspring-webclient

Spring Boot - Create a Deployable War File - Warning


In the Spring Boot documentation there is a warning (https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle//#howto.traditional-deployment.war):

Because Spring WebFlux does not strictly depend on the servlet API and applications are deployed by default on an embedded Reactor Netty server, War deployment is not supported for WebFlux applications.

Is this warning valid if i use the maven dependency "spring-boot-starter-webflux" only for using WebClient? I don't want to implement reactive web application with Spring Webflux, just use WebClient to make rest request on an external service.

I have implement a non reactive web application with maven dependency "spring-boot-starter-webflux" to use WebClient and no problem for me, just asking if the warning in Spring Boot documentation is a problem for me.


Solution

  • This warning only applies to Spring WebFlux server applications. If you're using WebClient in a Spring MVC application deployed as a WAR this shouldn't affect your application.