开发者

Role of filter-mapping

开发者 https://www.devze.com 2023-01-25 08:05 出处:网络
I\'m trying out Spring and I\'ve met the 开发者_运维百科filter-mapping tag. What is its role when compared to the servlet-mapping tag? Is it executed in the background when the urls are called?<fil

I'm trying out Spring and I've met the 开发者_运维百科filter-mapping tag. What is its role when compared to the servlet-mapping tag? Is it executed in the background when the urls are called?


<filter-mapping> specifies when a javax.servlet.Filter is invoked.

Filters are invoked before the servlet they are defined for (you can map a filter to either an URL pattern or to a specific servlet)

0

精彩评论

暂无评论...
验证码 换一张
取 消