Frontend Java Sviluppo Web

Thymeleaf with Spring Boot – Template Engine, MVC and Server-Side Rendering in Java

Learn Thymeleaf with Spring Boot: server-side MVC rendering, forms, data binding, PathVariable and a complete CRUD in Java.

Course description

Thymeleaf and Spring Boot: Server-Side Rendering Done Right

If you want to build Java web applications without relying on heavy frontend frameworks, Thymeleaf with Spring Boot is the right choice. In this course I take you step by step from the MVC architecture and 2-Tier applications all the way to building a complete CRUD, with HTML forms, data binding, and dynamic Bootstrap 5 tables.

What You'll Learn

  • MVC architecture and server-side rendering with Spring Boot
  • Project setup and directory structure
  • Binding String, Integer, and Java object variables in views
  • Iterating lists with th:each and Bootstrap 5 tables
  • PathVariable and RequestParam for passing data to the server
  • HTML Forms with GET and POST submissions
  • Complete CRUD: controller, methods, insertion and display

A Practical and Progressive Learning Path

We start from the basics — what a template engine is and why Thymeleaf integrates perfectly with Spring MVC — and build a real application together. Each concept is introduced with concrete examples: first we understand the why, then we write the code. The end result is a working, well-structured CRUD application ready to be extended.

Who This Course Is For

Designed for Java developers who know the basics of Spring Boot and want to add server-side rendering to their toolkit. Also useful for those coming from a REST-only approach who want to understand when and why to use a template engine like Thymeleaf instead of a separate frontend.

Lessons list

Let's complete the Thymeleaf + Spring Boot CRUD: I'll finalize the second part of the insert flow with an HTML Form POST, completing object persistence and the redirect after saving.

Guarda lezione

Let's start the CRUD insert flow in Thymeleaf: I'll create the HTML Form with POST submission to the Spring MVC controller and handle automatic binding between the form and the Java object.

Guarda lezione

Let's display the CRUD object list in a Bootstrap 5 table with Thymeleaf: I'll pass the list from the Spring MVC controller to the view and iterate it with th:each to render the data neatly.

Guarda lezione

Let's set up the Controller for a complete CRUD in Spring MVC + Thymeleaf: I'll organize the methods, define the mappings, and structure the project before building the insert, display, and edit features.

Guarda lezione

I'll introduce HTML Form POST data exchange in Thymeleaf + Spring MVC: the differences from GET, how to handle POST requests in the controller, and how to do automatic binding between the form and Java objects.

Guarda lezione

Let's consolidate GET HTML forms in Thymeleaf: real-world cases with multiple fields, common parameter naming errors, and typical behaviors to handle correctly in the Spring MVC controller.

Guarda lezione

I'll introduce HTML Forms in Thymeleaf with GET submit: how to structure the form, how data is sent to the server as a query string, and how Spring MVC intercepts it with @RequestParam in the controller.

Guarda lezione

I'll go deeper into PathVariable in Spring MVC and introduce RequestParam: when to prefer one over the other, how to customize them, and how to use them in Thymeleaf templates for navigation and filtering.

Guarda lezione

Let's send data to the server via URL segments with PathVariable in Spring MVC: I'll build dynamic links in the Thymeleaf template and show how Spring intercepts path values in the controller.

Guarda lezione

Let's build a dynamic HTML table with Bootstrap 5 and Thymeleaf: I'll iterate a Java object list with th:each and display the data in a structured way, combining Spring MVC with Bootstrap styling.

Guarda lezione

Let's tackle binding Java object collections in Thymeleaf: how to pass a list from the Spring MVC controller to the view and the different output modes available in the HTML template.

Guarda lezione

I'll go deeper into Java object binding in Thymeleaf: how to access model attributes and methods in the view using th:text, th:field expressions, and Spring MVC syntax.

Guarda lezione

I'll introduce collection binding in Thymeleaf with String lists: how to pass them from the Spring MVC controller, iterate with th:each, and use the most common String methods inside HTML templates.

Guarda lezione

Let's extend binding in Thymeleaf with Integer variables: I'll show how to pass numbers from the Spring MVC controller to the template and perform mathematical operations directly in Thymeleaf expressions.

Guarda lezione

Let's complete String variable binding in Thymeleaf: I'll go deeper into the Spring MVC Model, handling multiple attributes, and real-world cases for passing text data from the controller to the view.

Guarda lezione

I'll introduce data binding in Thymeleaf: the first practical approach to passing String variables from the Spring MVC controller to the HTML template using the Model and th:text expressions.

Guarda lezione

Let's build the first Spring MVC Controller and the first HTML page rendered with Thymeleaf: I'll create the mapping, return the template name from the method, and see exactly what happens in the server-side rendering cycle.

Guarda lezione

Let's initialize the Spring Boot project with Thymeleaf: I'll show you the directory structure, dependencies to add in pom.xml, and how to configure application.properties to use the template engine.

Guarda lezione

I'll go deeper into the 2-Tier architecture and MVC pattern in Spring Boot: we'll understand when server-side rendering with Thymeleaf is the right choice and how controller, model, and view collaborate in a Java application.

Guarda lezione

I'll introduce Thymeleaf, the Java template engine for Spring Boot: I'll explain what it is, how it integrates into the MVC architecture, and why you'd use it instead of a separate frontend for Java server-side web applications.

Guarda lezione
Giovanni Pace

Giovanni Pace

Ingegnere Informatico · Pratola Peligna

  • 107 Courses
About the teacher

Sono un ingegnere informatico con oltre 15 anni di esperienza nel settore ICT. Mi occupo di sviluppo software, cybersecurity, data science e intelligenza artificiale, con particolare attenzione all’innovazione e all’automazione dei processi aziendali. Da anni svolgo anche attività di docenza e formazione, creando percorsi pratici e coinvolgenti su programmazione, DevOps, AI e sicurezza informatica.

This course includes

  • Lessons 20
  • Duration 3h 52m
  • Difficulty intermedio
  • Language it
  • Certificate No

Recently viewed