com.magic80.springBootCommon.interceptor.InterceptorConfiguration Maven / Gradle / Ivy
package com.magic80.springBootCommon.interceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Component
@Configuration
public class InterceptorConfiguration implements WebMvcConfigurer {
@Override
public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(new CorsInterceptor());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy