Understanding of SpringMVC interceptor

Insert picture description hereThe loading order of web.xml is: context-param->listener->filter->servlet

The difference between servlet, filter, listener and interceptor: https://www.cnblogs.com/ryelqy/p/10286216.html

Filter can intercept all requests, and the interceptor can only intercept requests related to the controller.

Insert picture description hereThe interception here is a servlet

Insert picture description here
Insert picture description here

Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description hereInsert picture description here
Insert picture description here
Insert picture description here
Insert picture description here

Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/liulang68/article/details/109274205