-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
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
@PathVariable issue #71
Comments
Hi @Sithira, could you provide more details or a more detailed stacktrace? I could not reproduce your error. Code which I used to reproduction (test shows that everything should work):
|
Hi @jradlica, This is the stack trace you asked for :-)
and I have posted a photo of what my controller method looks like. Kindly tell me what I'm i doing wrong here? |
@Sithira please retry with v2.3.0 (just released) |
(assuming that fixes in 2.3.0 solved this -- feel free to reopen if your issue persists, though) |
Hello, i still have this problem with v2.6.2, did you find a solution? (problem with PathVariable) |
+++ Hello, i still have this problem with v2.6.2, did you find a solution? (problem with PathVariable) |
Hi, I'm trying to use the path variable feature like this, but it throws
net.kaczmarzyk.spring.data.jpa.web.InvalidPathVariableRequestedException: Requested path variable {parentId} is not present in Controller request mapping annotations
What I'm trying
@RequestMapping(method = RequestMethod.GET, path = "/{parentId}/translations/{translationId}/meta/search") public ResponseEntity<List<MetaDetailResponseDto>> search( @Conjunction(value = { @Or(value = @Spec(path = "metaType", params = {"meta_type"}, spec = Equal.class)) }, and = @Spec(path = "entity_id", pathVars = "parentId", spec = Equal.class)) Specification<MetaDetail> specification) { return ResponseEntity.status(HttpStatus.OK).body(this.adminDestinationTranslationMetaDetailService.search(specification)); }
it is an issue or am I doing anything wrong?
Kind Regards,
Sithira
The text was updated successfully, but these errors were encountered: