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 Nashorncan 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频繁的创建和销毁数组,还使用模板缓存,运行时优化等方法。

 

posted @   任国强  阅读(12)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 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传入多个参数
点击右上角即可分享
微信分享提示