I am invoking a GET method on a percentage encoded URI , but my rest controller is not able to handle it. It throws Internal Server Error. How am i suppose to handle encoded uri on rest controller side using @RequestParam
Asked
Active
Viewed 104 times
0
-
3try to put some code that you've tried before ! – Abder KRIMA Nov 07 '19 at 14:43
1 Answers
1
Use String in @RequestBody, and use URLDecoder to decode in UTF-8.
Like this - URLDecoder.decode(value, StandardCharsets.UTF_8.toString())
.
You can use base64 as well. Check this answer.

phnsh
- 24
- 2
- 5