//package com.upsfj.sfjprojectbackend.config;
//
//import com.upsfj.sfjprojectbackend.interceptor.AuthorizeInterceptor;
//import jakarta.annotation.Resource;
//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 WebConfiguration implements WebMvcConfigurer {
//    @Resource
//    AuthorizeInterceptor interceptor;
//
//
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry
//                .addInterceptor(interceptor)
//                .addPathPatterns("/**");
//    }
//}
