WebFlux programming models

Spring WebFlux is flexible enough to support different development patterns. You can create an application in WebFlux with the following two programming models:

  • Annotated controller: This is much similar than the Spring MVC controller.
  • Functional end point:  Functional end points are used to process and route requests with functional programming features.

We will explore both these options in the sample WebFlux application that we created with the Spring Data repository and entity class. The next part is to create a controller, which can be done in the following two ways.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.139.233.43