With the release of Spring Boot 1.1.0.M2 came the support for the new template engine that Groovy 2.3 provides. In this post, we will describe the benefits of using such an engine and of course how you can use it in Boot.
All the source code in this post is available on GitHub, so feel free to clone the repository and give it a try:
git clone https://github.com/melix/springboot-groovytemplates.git cd springboot-groovytemplates ./gradlew run
Then open your browser on http://localhost:8080
This application is fully written in Groovy and also makes use of GORM for Boot, but it is of course possible to use Groovy only for the templating part and write the rest of the application in Java. Starting from now, we will only focus on the templating aspect of this project.