在 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
然後在瀏覽器中開啟 https://:8080
此應用程式完全用 Groovy 編寫,也使用了 GORM for Boot,但它當然……