1.常见的模板引擎
前端后端未分离时代:最流行的前端模板如下,
常见的模板引擎分为:
jsp(最常见,也是最普遍,旧的那种);
beetl(国产的,听说性能效率也是最好的,远超其几个,官方是这样说的);
thymeleaf(springboot官方支持的"亲儿子"),
freemarker (暂时还没用过)
其他:前后端分离就会上手vue这样类似的前端框架了。
由于本次学习的主要目标是thymeleaf,所以会在接下来分享一些学习笔记
2.themeleaf简介
官方简介:
Thymeleaf is a modern server-side Java template engine for both web and standalone environments.
Thymeleaf’s main goal is to bring elegant natural templates to your development workflow — HTML that can be correctly displayed in browsers and also work as static prototypes, allowing for stronger col