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