How to do it...

Let us now use the reactive view implementation that can render reactive stream data using Spring Boot:

  1. Just as in the previous recipe, the only requirement for creating a full-blown reactive Spring 5 application is Spring Boot's webflux starter POM dependency. Also include the embedded Tomcat server as our official reactive server:
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-webflux</artifactId> <exclusions> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-reactor-netty </artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> </dependency> ...

Get Spring 5.0 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.