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
)
Ensure you have Java 21 or later.
./mvnw clean package
java -jar target/spring-boot-webflux-example.jar
Ensure you have a working Docker environment.
make dist image run
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