Reputation: 977
I'm wondering what are the advantages I can get by using Thymeleaf instead of JSP for the view in Spring.
Upvotes: 14
Views: 10551
Reputation: 47935
The commonly cited advantages are:
${#calendars.format(...)}
, ${#strings.capitalize(...)}
which are well integrated with Spring e.g. you can pass model beans propagated by Spring MVC into these functions..html
template, edit it and (possibly) edit it's linked .css
file; (2) hit F5
to refresh in the browser; (3) repeat until happy. By contrast, the same activity in a JSP implementation would involve: (1) deploy the application into a development server; (2) start it up; (3) make some changes; (4) redeploy (or hot deploy) the changes; (5) repeat until happy.Upvotes: 14