When implementing the HandlerInterceptor interface when customizing the interceptor, it will not be prompted to implement its method
- The first thing to do is to make sure it's
servlet
downweb.servlet.HandlerInterceptor
This is the first step. - The second step is to press
alt+o
orfn+alt+insert
the following pop-up window will appear, and operate according to the icon:
- Then
preHandle
customize the content of the yi interceptor below
Hope it could help everyone