完成管理员页面拦截器
This commit is contained in:
@@ -16,6 +16,7 @@ public class WebAppConfig implements WebMvcConfigurer {
|
||||
@Override
|
||||
public void addInterceptors(InterceptorRegistry registry) {
|
||||
registry.addInterceptor(new LoginInterceptor()).addPathPatterns("/home/**");
|
||||
registry.addInterceptor(new AdminInterceptor()).addPathPatterns("/home/admin/**");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user