|
@ -31,9 +31,9 @@ public class MvcConfig extends WebMvcConfigurerAdapter {
|
|
|
// 多个拦截器组成一个拦截器链
|
|
|
// addPathPatterns 用于添加拦截规则
|
|
|
// excludePathPatterns 用户排除拦截
|
|
|
registry.addInterceptor(gateWayInterceptor).addPathPatterns("/wlyygc/**");
|
|
|
registry.addInterceptor(doctorInterceptor).addPathPatterns("/doctor/**", "/statistics/province/**", "/statistics/**", "/wlyygc/**");
|
|
|
registry.addInterceptor(patientInterceptor).addPathPatterns("/patient/**");
|
|
|
registry.addInterceptor(gateWayInterceptor).addPathPatterns("/wlyygc/**");
|
|
|
|
|
|
super.addInterceptors(registry);
|
|
|
logger.info("init doctorInterceptor,patientInterceptor");
|