Tag: httpservletrequestwrapper

  • How to read a JSON request inside a Spring Boot filter?

    Let’s say you are using a filter in your spring boot application. Spring boot (Spring Security) already internally uses many filters to filter requests coming to your application. If you are going to create a custom filter you can do so by implementing Filter interface from javax servlet package or by extending GenericFilterBean/ OncePerRequestFilter provided…

  • How to log incoming requests to all REST services in Spring Boot?

    (As an alternate to the below solution you can check out this post , which is easier and more straightforward) Let’s say you want to log all the requests to your REST APIs developed using Spring Boot in a centralized way. You don’t want to add logs to each and every API. How to do…