'How to use @Pathvariable and @RequestParam at the same request
I'm trying this code:
Request URL: GET: /produtName/v1/00000000123?model=1,2
@GetMapping(value="/{product}/{version}/{document}?model={model})
public ResponseEntity<String> test(
@PathVariable("product") String product,
@PathVariable("version") String version,
@PathVariable("document") String document,
@RequestParam("model") List<String> model) {
But it's not working. What am I doing wrong?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
