All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.magic80.springBootCommon.interceptor.InterceptorConfiguration Maven / Gradle / Ivy

There is a newer version: 0.0.3
Show newest version
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