I plan to port a MVC app from Spring 3 to Spring 4 using Spring Boot.
This webapp use Apache Tiles.
I'm a bit confused considering Thymeleaf seems to be the new standard with Spring, with nice integration.
Tiles was a pain to configure in this app.
We've got like 20 JSP pages in this app.
Questions :
While Thymeleaf is more of a template engine for server-side application development. But Thymeleaf's popularity is on a steady rise. The developer community is slowly moving away from 'once a common' MVC framework for Javascript-based development.
If you are building web front-ends with Spring Boot or Spring MVC, and you're still using JSP (Java Server Pages) then this course is for you. Thymeleaf is a great templating engine which replaces JSP, and you can easily use it in any Spring MVC or Spring Boot application. Unlike JSP it's a pleasure to use.
No they aren't necessary, in fact most new projects that require web-pages are using single page applications now like Angular, React, Vue, ... over thymeleaf or jsp.
Both technologies are completely different. React provides so much, however Thymeleaf is just a template rendering library. If you want to make career in FE then learn React/Angular/Vue.. if you just want to build a crud with minimal learning curve then only go for Thymeleaf.
I would suggest eventually porting Tiles to Thymeleaf, but you don't have to do it all at once.
Your intermediate strategy could be to start using layouts and integrating existing Tiles where it makes sense. New development can be straight Thymeleaf and you can fully port existing Tiles when it makes sense to you.
Please see the following article (you can jump to the "Thymeleaf Tiles Integration" section) and the associated example code on github.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With