What you'll learn
In this project you’ll follow along with our instructions and create a basic blog with Spring Boot 2. You’ll create a controller that routes requests to several Thymeleaf templates to display blog data.
Table of contents
Setup
1h
- Set up your local environment for projects. We'll walk you through everything you need to know, including how to install and configure your environment to be able to complete all of the tasks.
Create a controller that displays a Thymeleaf Template
10m
- In this module, you'll create a controller that routes a request to the home template and passes data to it to display.
Display Static Data from the Post Repository
10m
- In this module, we'll add blog data to the PostRepository class and then display that data in our template.
Add style to the home page
10m
- In this module, we'll incorporate css and template substitution into our home template.
Display a Post Details Page
10m
- In this module, we'll display a post details page by adding a request mapping to the controller.