SpringMVC之四:Interceptor

攔截器Interceptor用來對http請求的處理過程進行攔截,以插入特定的處理邏輯,好比權限鑑別,有點AOP的味道。上文講過,HandlerMapping對匹配的http請求會返回一個HandlerExecutionChain,而Interceptor正是這個chain的一部分。web HandlerInterceptor 攔截器必須實現HandlerInterceptor接口:app pub
相關文章
相關標籤/搜索