添加商品到购物车测试
interceptor修改
This commit is contained in:
parent
5934fea2b9
commit
f8db3543a4
@ -16,9 +16,9 @@ public class InterceptorConfig implements WebMvcConfigurer {
|
||||
registry
|
||||
.addInterceptor(new LoginInterceptor())
|
||||
//拦截的路径
|
||||
.addPathPatterns("api/cart/*/**")
|
||||
.addPathPatterns("/api/cart/*/**")
|
||||
//放行的路径
|
||||
.excludePathPatterns("", "");
|
||||
.excludePathPatterns("");
|
||||
|
||||
WebMvcConfigurer.super.addInterceptors(registry);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user