DEV Community

Vijay SRJ
Vijay SRJ

Posted on

How to read httpservletrequest inside Spring Exception Handler?

Tried to read http requests in a spring exception handler directly and couldn’t do it . Looks like Httprequest can be read only once. To resolve this I used httpservlet wrapper object and it worked fine . Here is how to do it
https://fullstackdeveloper.guru/2020/09/28/how-to-read-httprequest-in-spring-boot-exception-handler/

Top comments (0)