Loading...
「ツール」は右上に移動しました。
利用したサーバー: natural-voltaic-titanium
162いいね 7527回再生

Spring Interceptors | Configure HandlerInterceptors | Explanation with Example

Spring Interceptor are used to intercept client requests and process them.

HandlerInterceptor is basically similar to a Servlet Filter, but in contrast to the latter it just allows custom pre-processing with the option of prohibiting the execution of the handler itself, and custom post-processing. Provides us with three pre-define methods -

preHandle() This method is used to perform some action on requests sent to the controller.
postHandle() This method is used to perform some action on responses sent to the client.
afterCompletion() This method is used to perform actions after request and response.

Spring Boot Tutorial -    • Spring Boot Introduction | What is Spring ...  

#springboot #java #spring

コメント