Template Engines for Spring: FreeMarker | Java Server Pages | Thymeleaf | Jade4j
Besides the template engines described so far, there are quite a few more available which may be used.
Let’s review some of them briefly.
Velocity is an older template engine, which is very complex but has the disadvantage that Spring has deprecated its use since version 4.3 and removed completely in Spring 5.0.1.
JMustache is a template engine which can be easily integrated into a Spring Boot application by using the spring-boot-starter-mustache dependency.
Pebble contains support for Spring and Spring Boot within its libraries.
Other templating libraries such as Handlebars or React, running on top of a JSR-223 script engine such as Nashorn, can also be used.
* [SpringBoot2.x系列教程(二十六)Springboot集成freemarker-腾讯云开发者社区-腾讯云](https://cloud.tencent.com/developer/article/1582376)
* [Spring Boot 整合 Freemarker 模板引擎 - spring 中文网](https://springdoc.cn/springboot-freemarker/)
* [Template Engines for Spring | Baeldung](https://www.baeldung.com/spring-template-engines)
* [Beetl 官网](http://ibeetl.com/)
Beetl远超过主流java模板引擎性能(引擎性能5-6倍与freemaker,2倍于JSP),宏观上通过了优化的渲染引擎,IO的二进制输出,字节码属性访问增强,微观上通过一维数组保存上下文Context,静态文本合并处理,重复使用字节数组来防止java频繁的创建和销毁数组,还使用模板缓存,运行时优化等方法。
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· CSnakes vs Python.NET:高效嵌入与灵活互通的跨语言方案对比
· DeepSeek “源神”启动!「GitHub 热点速览」
· 我与微信审核的“相爱相杀”看个人小程序副业
· Plotly.NET 一个为 .NET 打造的强大开源交互式图表库
· 上周热点回顾(2.17-2.23)
2019-12-15 Odoo 与浪潮 PSCloud
2019-12-15 MySQL server:Trying to access page number 4294967295 in space 0, space name innodb_system, which is outside the tablespace bounds.
2017-12-15 Tomcat下bootstrap启动分析
2016-12-15 MyBatis传入多个参数