I try to use UriInfo to get the list of request parameters, here is my code :
@RestController public class MyController {
@RequestMapping(value = \"/documents\"
It's because UriInfo
isn't a Spring MVC object. It is a JAX-RS object and you are not using JAX-RS, you're using Spring MVC. With Spring MVC, if you just want the parameter map, you can just inject it with @RequestParam
public Object getDocuments(@RequestParam MultiValueMap<String, String> requestParams)
Note, the MultiValueMap
is a Spring class, it's not the JAX-RS MultivaluedMap
.
See also: