I am coming from a .NET background in developing REST APIs. Now working on java REST project using spring boot.
First my validation at the controller @RequestBody just stop working. While trying to fix it, I saw different ways to implement. So what would be the correct way to annotate the @RequestBody?
@Validated @RequestBody
or
@Valid @RequestBody