[springboot]spring interceptor and request link description

insert image description here

1. Interceptor

There is no concept of interceptor in the Servlet specification, it is derived from the Spring framework.
insert image description here

There are three methods of interceptors in Spring:

  • preHandle represents the control layer method corresponding to the intercepted URL, the custom processing logic before execution
  • postHandle represents the control layer method corresponding to the intercepted URL, the custom processing logic after execution, and the modelAndView has not been rendered at this time.

Guess you like

Origin blog.csdn.net/hanxiaotongtong/article/details/122892725