I have a simple Spring Boot application in version 1.5.7 and I am trying to migrate it to version 2.0.0. I am almost done but there is one last piece missing and that is Thymeleaf.
Everything was working fine in the old version but after the migration, Spring Boot stopped resolving any templates (both pages and emails).
I have all templates src/main/resources/templates. Additionaly, I have layout called default in src/main/resources/templates/layout which looks like this:
The navigation fragment in localted in src/main/resources/templeats/fragments
In Spring Boot 2, the login page is rendered but the layout is not applied (so the navigation bar and styles are missing). Did something change in version 2.0.0? I have not found any solution to this in officials docs or migration guide.
EDIT: As suggested in the answer, it is caused by migrating to Thymeleaf 3. I updated my question with some changes reflecting the migration guide but the code is still not injecting the layout.
I have tried layout:data-layout-decorate=~{layout/default} and layout:data-layout-decorate=~{layout/default.html} as well
I made it work with manually adding the thymeleaf dialect dependency: