Spring Interceptors | Configure HandlerInterceptors | Explanation with Example

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ม.ค. 2023
  • 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 Introducti...
    #springboot #java #spring

ความคิดเห็น • 8

  • @user-yl5jl2lv1i
    @user-yl5jl2lv1i 10 หลายเดือนก่อน +1

    Hi Prashant, This was a very useful video. Thank you so much!
    Can you please create a video on microservice intercommunication with JWT authentication?

    • @prashantrana546
      @prashantrana546  10 หลายเดือนก่อน

      Sure I’ll post one video on Microservice Intercommunication with JWT

    • @user-yl5jl2lv1i
      @user-yl5jl2lv1i 10 หลายเดือนก่อน

      @@prashantrana546 Thank you so much for the quick reply!

  • @three_bachelors
    @three_bachelors ปีที่แล้ว +1

    Hii Prashant thia video is very helpful. How can i modify request body, responseBody in interceptor replace modified data?

  • @sudosai
    @sudosai 7 หลายเดือนก่อน

    Why have you declared serialVersionUID in the exception class?

  • @pradeepmahadik5943
    @pradeepmahadik5943 22 วันที่ผ่านมา +1

    where can we find notes which are u using

    • @prashantrana546
      @prashantrana546  22 วันที่ผ่านมา

      I can share those Notes through Drives or Git. Btw those are created by me!

    • @pradeepmahadik5943
      @pradeepmahadik5943 21 วันที่ผ่านมา

      @@prashantrana546 can u share me