Commit 30710fab authored by Quxl's avatar Quxl

x

parent 26d933e2
......@@ -19,15 +19,7 @@ public class WebMvcConfig implements WebMvcConfigurer {
@Override
public void addInterceptors(InterceptorRegistry registry) {
//注册自定义拦截器,添加拦截路径和排除拦截路径
/*System.out.println("-addInterceptors------");
registry.addInterceptor(openInterceptor).excludePathPatterns("api/path/login");
super.addInterceptors(registry); */
registry.addInterceptor(logInterceptor).addPathPatterns("*");
registry.addInterceptor(logInterceptor).addPathPatterns("/**");
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment