[英]What is the advantage of using Thymeleaf instead of JSP in Spring?
我想知道在Spring中使用Thymeleaf而不是JSP来获得什么样的优势。
The commonly cited advantages are: 通常引用的优点是:
${#calendars.format(...)}
, ${#strings.capitalize(...)}
which are well integrated with Spring eg you can pass model beans propagated by Spring MVC into these functions. ${#calendars.format(...)}
, ${#strings.capitalize(...)}
,它们与Spring很好地集成,例如,您可以将Spring MVC传播的模型bean传递给这些职能。 .html
template, edit it and (possibly) edit it's linked .css
file; .html
模板,编辑它并(可能)编辑它的链接.css
文件; (2) hit F5
to refresh in the browser; F5
刷新; (3) repeat until happy.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.