增加同意验证,但是没有成功
This commit is contained in:
@@ -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/**"); // 开放登录注册
|
||||
// }
|
||||
//}
|
||||
Reference in New Issue
Block a user