I have a REST controller with a RequestMapping that looks like this:
@RequestMapping(method = RequestMethod.GET)
public List<MyDTO> search(SearchParameters searchParameters) {
// ...
}
and call it like that: /data/search?name=some%20value&....
searchParameters
is populated, but the values are not being urldecoded. So instead of setting searchParameter
's attribute name
to "some value" it is "some%20value". How can I instruct Spring to urldecode these values?