thymeleaf 不必再说,spring boot 推荐的模板引擎
因为其为html静态页面 方便前后端开发人员协作,这里,自己也便开始研究,毕竟spring boot 1.5.3 以后整合不了jsp了
这里讲布局框架,github见
https://github.com/ultraq/thymeleaf-layout-dialect
有了这个布局框架,你可以专注于body体的内容,不在纠结与left header footer 公共js css
这儿有个坑
thymeleaf-layout-dialect 现有 1.X 2.x版本
具体参见这个markdown https://github.com/ultraq/thymeleaf-layout-dialect/blob/master/Docs/MigrationGuide.md
最新的spring-boot-starter-thymeleaf起步依赖还不支持2.X请大家注意。
2.X 的文档ultraq 也是两个月前 大约2017年5月写的。