spring拦截器

registry.addInterceptor(new LogInterceptor()).addPathPatterns("/api/**").excludePathPatterns("/api/iv3/**"); 添加HandlerInterceptor后添加匹配路径: 1.**和*的区别 **可以匹配多层路径,而*只能匹配单层路径 2.一种方式:.addPathPatterns("/api/
相关文章
相关标签/搜索