Mastering Thymeleaf with Spring Boot

Mastering Thymeleaf with Spring Boot

English | MP4 | AVC 1280×720 | AAC 44KHz 2ch | 66 lectures (4h 49m) | 7.14 GB

Become an expert using Thymeleaf Templates with Spring Boot

Thymeleaf is a highly popular templating engine to use with Spring MVC to produce rich, and dynamic web pages.

Unlike other options available for Java and Spring Boot, Thymeleaf has a natural templating language – meaning you can view the templates right in your favorite browser. This really helps accelerate your development process.

Try doing that with JSP!

In this course you are guided step by step in building an ecommerce like web application using Thymeleaf, Spring MVC, and Spring Boot.

The focus of the course is on building web content with Thymeleaf. You start off the course building web pages using Bootstrap CSS. These are simple web pages you can view right in your browser. (No Spring Boot or Spring MVC – yet!) This is to give you a good overview of Bootstrap CSS, one of the most popular CSS frameworks in use today!

Next, you build the HTML for a product catalog website. Just the HTML to show a product listing and product detail pages.

Then we take your HTML pages and convert them into Thymeleaf templates. We add the templates into a Spring Boot application. Spring Boot will auto-configure Spring MVC to render the Thymeleaf templates under Tomcat.

You get to see how we transition the HTML documents from simple HTML, into Thymeleaf Templates for the Spring Boot application.

Using Spring MVC, you are able to start introducing dynamic content into the Thymeleaf templates.

From here you get to explore using Thymeleaf with Spring Boot.

You get hands on examples of:

  • Externalizing Text properties
  • Using Spring MVC Internationalization with Thymeleaf
  • Using Thymeleaf Fragments for common page components.
  • Leveraging Spring Boot Developer tools to speed up your development
  • Rendering POJOs returned from Spring MVC under Thymeleaf
  • Looping over lists in Thymeleaf
  • Using Thymeleaf fragments with lists
  • Thymeleaf expression syntax
  • Spring MVC validation with Thymeleaf
  • Using Spring Security with Thymeleaf
  • How to show different content to logged in users vs anonymous users

While the course does use the Spring Framework, Spring Boot, Spring MVC, and Spring Security – these are not the primary topics of the course.

If you are a Spring Framework developer, used to JSPs (Java Server Pages) and wishing to get up to speed on Thymeleaf this is a perfect course for you! You’ll never want to use JSPs again!

Even if you are not a Spring Framework developer, you will still get a lot out of this course! Thymeleaf is a powerful templating technology for Java and Spring. With Spring Boot it becomes very easy to develop rich dynamic content!

What you’ll learn

  • Learn how to convert a HTML5 document to a Thymeleaf template
  • Use Bootstrap CSS to build a basic web page
  • Configure Spring MVC with Spring Boot to display Thymeleaf templates
  • Externalize text values to properties files
  • Use Spring Message bundles for internationalized text values
  • Display POJO properties via a Thymeleaf template
  • Iterate over lists to display tabular content
  • Use Thymeleaf fragments for comment HTML components
  • Display Spring validation messages using Thymeleaf
  • Use the Thymeleaf Spring Security extension to show, or not show, content to users
Table of Contents

Getting Started with Thymeleaf and Spring Boot
1 Instructor Introduction – John Thompson, Spring Framework Guru
2 Course Introduction
3 Section Overview
4 Creating a Spring Boot Project
5 Checking out from GitHub

Bootstrap CSS
6 Section Overview
7 Overview of HTML
8 Adding CDN Resources for Bootstrap CSS
9 Bootstrap Grid System
10 Bootstrap Code Assignment
11 Bootstrap Code Assignment Review

Building the Example Product Catalog Website
12 Section Overview
13 Building the Main Index Page
14 Product Page Code Assignment
15 Product Page Code Assignment Review

Rendering Thymeleaf Templates with Spring Boot and Spring MVC
16 Section Overview
17 Spring MVC Configuration
18 Converting HTML to Thymeleaf Templates
19 Thymeleaf Standard Dialect XSD
20 Rendering Static Resources In Thymeleaf
21 Thymeleaf Image Tag Code Assignment
22 Thymeleaf Image Tag Code Assignment Review

Externalizing Text in Thymeleaf with Spring MVC
23 Section Overview
24 Externalizing Text in Thymeleaf with Spring MVC
25 Spring MVC Internationalization of Text using Thymeleaf
26 i18N Coding Assignment
27 i18N Coding Assignment Review

Using Thymeleaf Fragements
28 Section Overview
29 Using Thymeleaf Fragments
30 Thymeleaf Fragments Code Assignment
31 Thymeleaf Fragments Code Assignment Review
32 BONUS – Using Spring Boot Dev Tools

Displaying Objects Using Thymeleaf with Spring MVC
33 Section Overview
34 Spring MVC Service Layer
35 Returning Objects to Thymeleaf
36 Accessing Object Properties in Thymeleaf
37 Displaying Objects Code Assignment
38 Conditional Logic in Thymeleaf

Listing Objects Using Thymeleaf
39 Section Overview
40 Spring MVC Configuration
41 Iteration in Thymeleaf
42 Using Iteration with Fragments
43 Iteration Code Assignment
44 Iteration Code Assignment Review
45 Thymeleaf Expressions

Spring MVC Validation Messages
46 Section Overview
47 Spring MVC Configuration
48 Setting Up Forms in Thymeleaf
49 Display Error Alert Using Bootstrap CSS
50 Displaying Field Level Validation Messages
51 Validation in Thymeleaf Code Assignment
52 Validation in Thymeleaf Code Assignment Review
53 Login Form Code Assignment
54 Login Form Code Assignment Code Review

Using Spring Security with Thymeleaf
55 Section Overview
56 Spring Security Maven Dependencies
57 Spring Security Configuration
58 Thymeleaf Spring Security Maven Dependencies
59 Thymeleaf Spring Security XML Namespace
60 Showing Content Based on Logged in Status
61 Showing Content Based on Role
62 Showing User Information
63 Spring Security JSP Tag Lib

Appendix A – Using GitHub
64 GitHub Basics
65 GitHub Workflow

Course Conclusion
66 Course Conclusion

Homepage