filmov
tv
Using Java Functions from Thymeleaf

Показать описание
One of my students asked me how to access Java functions from Thymeleaf templates. He wanted to access the database directly from the Thymeleaf template. When using Thymeleaf with Spring, the common MVC (Model, View, Controller) paradigm is followed. I explain why accessing the database via Java is a very poor programming practice.