Using RouterFunction and HandlerFunction

The previous recipes have shown us how to establish a reactive ApplicationContext 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.

Get Spring 5.0 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.