1. 切面配置类 :需添加标注 @Configuration
2.切面配置类 需实现接口类 WebMvcConfigurer (原继承类WebMvcConfigurerAdapter已过时)
3.需实现接口方法(addInterceptors)
例:registry.addInterceptor(new ValidateToken()).addPathPatterns("/login/**");
例:registry.addInterceptor(new ValidateToken()).addPathPatterns("/login/**").addPathPatterns("/operation/**");
4.具体切面类需实现接口(HandlerInterceptor)