Skip to content

Automatically add additional Link Builder beans to thymeleaf template engine #20054

@dtrunk90

Description

@dtrunk90

Only template resolvers and dialects are added automatically. There should be a line in code to add link builders as well: https://github.com/spring-projects/spring-boot/blob/master/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafAutoConfiguration.java#L145

Something like linkBuilders.orderedStream().forEach(engine::addLinkBuilder);.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: declinedA suggestion or change that we don't feel we should currently apply

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions