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.
On this page of the site you can watch the video online Using Java Functions from Thymeleaf with a duration of hours minute second in good quality, which was uploaded by the user Spring Framework Guru 27 May 2016, share the link with friends and acquaintances, this video has already been watched 4,177 times on youtube and it was liked by 57 viewers. Enjoy your viewing!