Sample of a Spring boot 3 app using webflux (for asynchronous stream processing with non-blocking back pressure).
Install proper java version:
sdk install java 17.0.6-amzn
Build with running tests:
./gradlew clean build
Start spring app:
./gradlew bootRun
Now hit:
curl http://localhost:8080/foo
curl http://localhost:8080/bar
ref: