Which is more secure between @RequestParam
and @RequestBody
in Spring Framework application?
I am using @PostMapping
in backend.
I am using @RequestParam
as well as @RequestBody
.
@RequestParam
for few request parameters, one or two.
@RequestBody
for large request as an object with multiple fields.
Thanks in advance.