How it works...

When it comes to full-blown support, Thymeleaf can translate the reactive streams to be rendered by its templates through a wrapper class called org.thymeleaf.spring5.context.webflux.ReactiveLazyContextVariable. This object behaves as a blocking mechanism to resolve asynchronous objects like Mono<T> or Flux<T> in order for the Thymeleaf templates to render the raw data. The translation process happens during the transition of the stream from the request handler to view.

All its templating APIs must be injected into the Spring Reactive container since Thymeleaf is one of the supported components in building reactive applications using Spring 5 platform. Similar to FreeMarker, Spring 5 has a reactive version of Thymeleaf APIs but can only be used in the next chapter.

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

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