Step 1: Write a custom interceptor class, which inherits HandlerInterceptorAdapter and overrides the preHandle method
Step 2: Configure the springmvc.xml file and define the interceptor properties
The mapping of the login request should not start with sys, otherwise it will also be intercepted