The beat part is:
<html data-layout-decorate="~{layouts/default_layout.html}" lang="en">
This is what makes layout-decorate a possibility!
Now you have unleash the real templating power!
Step #1 — login Page
Step #2 — default_layout page
Just don’t forget your good old thymeleaf dependency.
<dependency>
<groupId>nz.net.ultraq.thymeleaf</groupId>
<artifactId>thymeleaf-layout-dialect</artifactId>
</dependency>
So, there you go, let’s do it properly and set it up for success!
Feel free to like, share, comment below share your thoughts about pros and cons of this quick approach.