Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1.3 KB

README.md

File metadata and controls

38 lines (29 loc) · 1.3 KB

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