-
Book Overview & Buying
-
Table Of Contents
Spring 5.0 Cookbook
By :
The previous recipes have shown us how to establish a reactiveApplicationContext and how Spring Boot 2.0 manages to run this reactive platform using a reactive embedded Tomcat server. This recipe will add another main feature of Spring 5 that is about building non-blocking, asynchronous, and context-independent Request-Response transactions using the functional web framework, a technique of writing a reactive version of @Controller and its mappings, using a domain-specific language way.
Open the standalone Spring Boot ch09-flux project and add the following: RouterFunction<?> and HandlerFunction<?>.
Let us implement reactive services using HandlerFunction<T> and RouterFunction<T>. Follow these steps: