Skip to content

Suggestion: clarify that @Bean LayoutDialect is not required when using Spring Boot #249

@GiovaniFranco01

Description

@GiovaniFranco01

Hi there!

I'm using Thymeleaf Layout Dialect in a Spring Boot project and noticed that the documentation recommends manually registering the dialect with:
@bean
public LayoutDialect layoutDialect() {
return new LayoutDialect();
}

However, in Spring Boot, this isn't necessary — the dialect is auto-registered when the dependency is added to pom.xml.

It would be helpful if the documentation clarified this distinction. Something like:

“If you're using Spring Boot, simply adding the dependency to your pom.xml is enough. The dialect will be auto-registered. The @bean declaration is only needed for manual configurations or non-Spring Boot projects.”

This would make things clearer for developers who are just getting started.

Thanks for the great work on this dialect — it's working perfectly in my project!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions