Argument Resolver

A worthy companion for @RequestBody

Posted on by  
Jacob van Lingen

A while ago I was working on a Spring REST project and had a special wish. I wanted for one endpoint an exception thrown when someone requested it with an object with unknown properties. All the other endpoints with their rest objects should continue to exhibit the same behaviour. Let me share how I did this.

Continue reading →