@PathVariable issue
See original GitHub issueHi, 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
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (2 by maintainers)
Top GitHub Comments
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)