[總結]過濾器(Filter)和攔截器(Interceptor)的區別

  攔截器 過濾器 實現 java反射 函數回調 規範 spring框架 servlet規範 依賴 不依賴servlet容器 ,依賴於web框架(比如springMVC) 依賴servlet容器 作用範圍 action請求,spring中是contgroller 幾乎所有請求起作用(除了web程序,也可以用於Application,Swing) 使用spring資源(訪問上下文,值棧裏的對象,獲取
相關文章
相關標籤/搜索