|
@ -35,8 +35,8 @@ public class MvcConfig extends WebMvcConfigurerAdapter {
|
|
public void addInterceptors(InterceptorRegistry registry) {
|
|
public void addInterceptors(InterceptorRegistry registry) {
|
|
// 多个拦截器组成一个拦截器链
|
|
// 多个拦截器组成一个拦截器链
|
|
// addPathPatterns 用于添加拦截规则
|
|
// addPathPatterns 用于添加拦截规则
|
|
// excludePathPatterns 用户排除拦截
|
|
|
|
registry.addInterceptor(gateWayInterceptor).addPathPatterns("/wlyygc/**","/third/juye/kit/**").excludePathPatterns("/wlyygc/doctor/**", "/wlyygc/patient/**");
|
|
|
|
|
|
// excludePathPatterns 用户排除拦截 ,/third/juye/kit/**
|
|
|
|
registry.addInterceptor(gateWayInterceptor).addPathPatterns("/wlyygc/**").excludePathPatterns("/wlyygc/doctor/**", "/wlyygc/patient/**");
|
|
registry.addInterceptor(doctorInterceptor).addPathPatterns("/doctor/**", "/statistics/province/**", "/statistics/**", "wlyygc/doctor/**");
|
|
registry.addInterceptor(doctorInterceptor).addPathPatterns("/doctor/**", "/statistics/province/**", "/statistics/**", "wlyygc/doctor/**");
|
|
registry.addInterceptor(patientInterceptor).addPathPatterns("/patient/**", "/wlyygc/patient/**");
|
|
registry.addInterceptor(patientInterceptor).addPathPatterns("/patient/**", "/wlyygc/patient/**");
|
|
|
|
|