Skip to content

jecklgamis/spring-boot-webflux-example

Repository files navigation

Spring Boot WebFlux Example

Build

This is an example Spring Boot WebFlux app using Java. Spring WebFlux uses Reactor library, an implementation of Reactive Streams Specs for building non-blocking applications.

This example:

  • Uses Reactor Netty, the default Web container for Spring WebFlux
  • Uses functional endpoints
  • Contains GET/POST/DELETE handler examples (see KeyValueStoreHandler.java)
  • Contains Multipart file upload handler example (see FileUploadHandler.java)

Running The App

Ensure you have Java 21 or later.

./mvnw clean package
java -jar target/spring-boot-webflux-example.jar

Running The App Using Docker

Ensure you have a working Docker environment.

make dist image run

Testing The Endpoints

Point your browser to http://localhost:8080 or use curl in command line.

curl -v  http://localhost:8080/

Actuator endpoints:

  • http://localhost:8080/actuator/metrics
  • http://localhost:8080/actuator/health

About

A Spring Boot WebFlux Template App

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published