Skip to content

Commit

Permalink
统一拦截
Browse files Browse the repository at this point in the history
  • Loading branch information
lsgwr authored and gitee-org committed Nov 15, 2021
1 parent 4e8ff1c commit 8eebb65
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class IntercepterConfig implements WebMvcConfigurer {
@Override
public void addInterceptors(InterceptorRegistry registry) {
// 拦截user下的api
registry.addInterceptor(loginInterceptor).addPathPatterns("/user/**").addPathPatterns("/exam/**");
registry.addInterceptor(loginInterceptor).addPathPatterns("/api/**");
}

}

0 comments on commit 8eebb65

Please sign in to comment.