在 Spring Boot 中使用创新的 Groovy 模板引擎
随着 Spring Boot 1.1.0.M2 的发布,Groovy 2.3 提供的新模板引擎也得到了支持。在这篇文章中,我们将介绍使用这种引擎的好处以及如何在 Boot 中使用它。
这篇文章中的所有源代码都可以在 GitHub 上找到,欢迎克隆仓库并尝试一下
git clone https://github.com/melix/springboot-groovytemplates.git
cd springboot-groovytemplates
./gradlew run
然后在浏览器中打开 http://localhost:8080
这个应用程序完全用 Groovy 编写,并且使用了 GORM for Boot,但它当然……