Is there a way to customize what gets displayed when a required @RequestParam is not sent to the request handler? I always get HTTP Status 400 with a description “The request sent by the client was syntactically incorrect ().” in this case.
Is there a way to customize what gets displayed when a required @RequestParam is
Share
Yes, there is a way you should catch
MissingServletRequestParameterExceptionYou can do it in several ways:
1)
2)
Hope it helps.