We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terence Mill opened SPR-14526 and commented
@RequestMapping(method = RequestMethod.GET, value = "/{userId}", produces = "application/json", consumes = "application/json") public IUser getUserById(@PathVariable("userId") Long userId);
Calling @Get on PROT://DOMAIN/users/1 -> userId is NULL :(
@Get
PROT
DOMAIN
@RequestMapping("/users") public interface IUserEndpoint {..}
@RestController public class UserEndpoint extends implements IUserEndpoint {..}
(!) It only works if i repeat @PathVariable in my implementing @RestController
@PathVariable
@RestController
@RestController public class UserEndpoint extends implements IUserEndpoint { public IUser getUserById(@PathVariable("userId") Long userId);
Repeating the REST contract is an ugly workaround
Affects: 4.2.6
Issue Links:
The text was updated successfully, but these errors were encountered:
jhoeller
No branches or pull requests
Terence Mill opened SPR-14526 and commented
Calling
@Get
onPROT
://DOMAIN
/users/1 -> userId is NULL :((!) It only works if i repeat
@PathVariable
in my implementing@RestController
Repeating the REST contract is an ugly workaround
Affects: 4.2.6
Issue Links:
The text was updated successfully, but these errors were encountered: