Skip to content

RequestMapping with 3 PathVariable doesn't work [SPR-6741] #11407

@spring-projects-issues

Description

@spring-projects-issues

Bjorn Harvold opened SPR-6741 and commented

This RequestMapping doesn't work:

@RequestMapping(value = "/administration/user/{id}/account/{accountId}/transfer/{accounttransferId}", method = RequestMethod.GET)

This RequestMapping works:

@RequestMapping(value = "/administration/account/{accountId}/transfer/{accounttransferId}", method = RequestMethod.GET)

During startup, in both cases, Spring says that the above urls have been matched to a Class. There is only one method in the class to make sure nothing is being overridden. It seems this happens the moment I have more than 2 PathVariables defined.


Affects: 4.0.1

Issue Links:

Referenced from: commits d746e3f, ce0473f, f829cd1

3 votes, 6 watchers

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions