Skip to content

Add Support for Resolving Property Values in @RequestMapping(value) #361

@kevinconaway

Description

@kevinconaway

The @RequestMapping(value) annotation supports property values for dynamically specifying the endpoint value, like @RequestMapping(value="${some.request.mapping})

I am using the Springfox project to document my API and I would like to be able to add a Link to the Swagger2 documentation in my API:

I'm adding a link to a resource via:
resource.add(linkTo(methodOn(Swagger2Controller.class).getDocumentation(null)).withRel("swagger.json"));

and the resuling link looks like:

http://localhost:8080/api/${springfox.documentation.swagger.v2.path:/v2/api-docs}

Metadata

Metadata

Assignees

Labels

in: coreCore parts of the project

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions