I am unsure what is happening here, but the main-layout is not getting inserted. It's just pulling in the content and leaving all the layout tags in place.

I have the dependency
<dependency>
<groupId>nz.net.ultraq.thymeleaf</groupId>
<artifactId>thymeleaf-layout-dialect</artifactId>
<version>3.1.0</version>
</dependency>