博主那个沙箱模拟支付的拦截器 配置
@Override
protected void addInterceptors(InterceptorRegistry interceptorRegistry){
interceptorRegistry.addInterceptor(JwtInterceptor)
}
@Bean
public JwtInterceptor jwtInterceptor(){
return new JwtInterceptor();
}
public JwtInterceptor jwtInterceptor()
上网查jwt的书写方式
配置拦截器可以正常运行