增加同意验证,但是没有成功

This commit is contained in:
2025-08-07 10:18:28 +08:00
parent d2e479b9f8
commit ad85efaa74
7 changed files with 167 additions and 57 deletions

View File

@@ -0,0 +1,20 @@
package com.onekeycall.videotablet.config;
import com.onekeycall.videotablet.interceptor.TokenInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//@Configuration
//public class WebConfig implements WebMvcConfigurer {
// @Autowired
// private TokenInterceptor tokenInterceptor;
//
// @Override
// public void addInterceptors(InterceptorRegistry registry) {
// registry.addInterceptor(tokenInterceptor)
// .addPathPatterns("/user/**") // 保护用户相关端点
// .excludePathPatterns("/public/**"); // 开放登录注册
// }
//}