0

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

harsh garg
  • 101
  • 3
  • 10

1 Answers1

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