Tag: restcontrolleradvice
-
How to interpret and modify REST requests in Spring Boot in a centralized way?
Let’s say you have created a bunch of REST services in your Spring Boot app. And you want to perform a common action on all the requests. May be you want to log the incoming requests to a log file. Instead of doing this action for every REST service you can do it in a…
-
How to modify a REST service response without modifying existing code in Spring Boot?
I wanted to modify a REST service with a change in the response. The service was already doing what it was intended to do . There was a requirement to change certain things related to the representation of the response. I didn’t want to change the existing code and clutter it with this logic. So…