Skip to content

WebMvcLinkBuilder's linkTo and methodOn doesn't evaluate ${} #1360

@lmtoo

Description

@lmtoo

I defined a RestController ,which annotated with @RequestMapping("${infrastructure.endpoints.project.base-path:/api/v1/projects}") , but when I use this controller to generate Link , list.add(linkTo(methodOn(ProjectController.class).list()).withRel(PROJECTS));
I got link like this

"projects": { "href": "http://localhost:8085/inspection${infrastructure.endpoints.project.base-path:/api/v1/projects}" },

infrastructure.endpoints.project.base-path did'nt evaluate with the Environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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