Skip to content

server.servlet.context-path has no impact on webmvc RouterFunction #23841

@urferr

Description

@urferr

When i use the new webmvc RouterFunction to define a REST rest service method the value of the property server.servlet.context-path does not become part of the URL the service is exported with. I have to specify the defined context-path explicitely when defining the router function.
demo.zip

When i export the method using a @RestController bean then then the url starts with the context-path value as expected

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions