1234567891011121314151617181920212223242526272829303132333435363738 |
- //package com.fdkankan.scene.config;
- //
- //import com.fdkankan.scene.Interceptor.TokenInterceptor;
- //import org.springframework.beans.factory.annotation.Autowired;
- //import org.springframework.context.annotation.Configuration;
- //import org.springframework.web.servlet.config.annotation.CorsRegistry;
- //import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
- //import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
- //import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
- //
- //
- //@Configuration
- //public class InterceptorConfig implements WebMvcConfigurer {
- //
- // @Autowired
- // private TokenInterceptor tokenInterceptor;
- //
- //// @Override
- //// public void addCorsMappings(CorsRegistry registry) {
- //// registry.addMapping("/**").allowCredentials(true).allowedHeaders("*").allowedOrigins("*").allowedMethods("*");
- ////
- //// }
- //
- // @Override
- // public void addInterceptors(InterceptorRegistry registry) {
- // registry.addInterceptor(tokenInterceptor).addPathPatterns("/service/scene/edit/**");
- //// .excludePathPatterns("/**/sso/**","/app/**","/test/**","/**/inner/**")
- //
- // WebMvcConfigurer.super.addInterceptors(registry);
- // }
- //
- // @Override
- // public void addResourceHandlers(ResourceHandlerRegistry registry) {
- // WebMvcConfigurer.super.addResourceHandlers(registry);
- // }
- //
- //}
- //
|