chore: 清理冗余注释,保留字段/业务含义注释
This commit is contained in:
@@ -30,10 +30,8 @@ public class WebMvcProdConfig implements WebMvcConfigurer {
|
||||
.allowCredentials(true);
|
||||
}
|
||||
|
||||
// 注册拦截器
|
||||
@Override
|
||||
public void addInterceptors(InterceptorRegistry registry) {
|
||||
// 注册 Sa-Token 拦截器,校验规则为 StpUtil.checkLogin() 登录校验。
|
||||
registry.addInterceptor(new SaInterceptor(handle -> StpUtil.checkLogin()))
|
||||
.addPathPatterns("/**")
|
||||
.excludePathPatterns("/login");
|
||||
|
||||
Reference in New Issue
Block a user