Using reactive view resolvers
The previous recipes showed us the procedures required to create a full reactive web application, but there are still parts of it that need not be present, such as the use of InternalResourceViewResolver
, MessageBundleViewResolver
, and the rest of the non-reactive view resolvers of Spring 5. This recipe will recommend to us the appropriate view engines for a reactive application.
Getting started
Let us tag ch09
as a closed project and create a separate one for this recipe that will be named ch09-flux
.
How to do it...
Let us now use the reactive view implementation that can render reactive stream data using Spring Boot:
- 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...