It is hoped that an interceptor can be provided to allow users to do custom processing before and after the methods in the controller, such as recording the request parameter log

Comment From: poutsma

Do you mean HandlerInterceptors?

Comment From: brucelwl

@poutsma Unfortunately, HandlerInterceptor can't let me get the request body of Content-Type=application/json. I hope there is an interceptor after spring MVC parses the request parameters

Comment From: Nidhi-Tanwar14

The HandlerInterceptor contains three main methods:

prehandle() – called before the execution of the actual handler postHandle() – called after the handler is executed afterCompletion() – called after the complete request is finished and the view is generated

Can you please try using the posthandle() method.

Comment From: brucelwl

https://github.com/spring-projects/spring-framework/issues/30758