Spring 5 : Functional Web Framework | Code Factory

Reference Link : Link

Donate : Link

Spring WebFlux framework introduces a new functional web framework built using reactive principles.

pom.xml

log4j2.xml

Client.java

Server.java

EmployeeHandler.java

Employee.java

EmployeeRepository.java

IEmployeeRepository.java

First run Server.java after that you can check service using 2 ways.
1. Using postman or any other API testing software
2. Run Client.java

Here i test this service using postman

Note : use Content-Type = application/json

HTTP GET http://localhost:8080/person

HTTP GET http://localhost:8080/person/1

HTTP POST http://localhost:8080/person

HTTP PUT http://localhost:8080/person/

HTTP DELETE http://localhost:8080/person/3