Spring @DeleteMapping (Post, Get, etc.) path variable support
Answered
Hello,
When I use annotions from package org.springframework.web.bind.annotation (like @GetMapping, @DeleteMapping, etc.), I have this message if I inspect code :
Cannot resolve path variable "color_id" in request mapping.
This is my code for example :
@GetMapping(PATH + "/cars/{color_id}" )
public Set<CarDto> getCarsByColor(
@ApiParam(value = PRODUCT_ID, required = true) @PathVariable("color_id") Integer modelId){
Is this a bug ? The problem appears only if I have a concatenation.
Thank you for your help !
Regards
Yann
Please sign in to leave a comment.
There is an open bug which appears to be related to your problem: https://youtrack.jetbrains.com/v2/issue/IDEA-121150.