CHANGES TO THE SPRING 5 INTEGRATION MODULE (Web MVC and WebFlux)
With this new version of Thymeleaf, a new version of the thymeleaf-spring5 integration module has been published too: 3.0.6.M4. Note this version is not considered stable yet (no ".RELEASE") because it depends on Spring 5, which is still in milestone development phase.
How does Thymeleaf operate in a reactive-friendly way for Spring 5 WebFlux?
Like previous versions, this new version of the Spring 5 integration module includes updated support for the new Spring 5 WebFlux reactive web framework. When used with WebFlux, Thymeleaf can operate in one of three reactive-friendly modes:
Full, producing all output in memory and sending it as a single output buffer.
Chunked, producing output in buffers (chunks) of a configurable maximum size.
Data-Driven, making Thymeleaf work as an integrated part of a stream of data, which it renders into HTML in a way fully sensible to reactive back-pressure.
Also, note that there are three sandbox applications prepared to serve as examples of the general thymeleaf-spring5 integration with Spring 5 WebFlux:
thymeleafsandbox-stsm-reactive, equivalent to the STSM sample application but using Spring 5, Spring Boot 2.0 and the new Spring WebFlux framework. This sandbox is mainly meant to test form binding.
thymeleafsandbox-biglist-reactive, using Spring 5, Spring Boot 2.0 and the new Spring WebFlux framework. This sandbox is meant to test the rendering of large amounts of data.
thymeleafsandbox-sse-webflux, using Spring 5, Spring Boot 2.0 and the new Spring WebFlux framework. This sandbox is meant to test the rendering of Server-Sent Events (SSE) directly in HTML (no need for JSON parsing at the browser).
WE HAVE SOME TERRIFIC FIGURES!
Our last download figures (from Maven Central) show that the Thymeleaf core jar had 222,526 downloads only in April 2017. That is just awesome and hugely motivating. Thanks for all the confidence!