fi.evolver.basics.spring.http.HttpInterceptorConfig Maven / Gradle / Ivy
package fi.evolver.basics.spring.http;
import org.springframework.context.annotation.Bean;
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 HttpInterceptorConfig implements WebMvcConfigurer {
@Bean
HttpInterceptor httpInterceptorBean() {
return new HttpInterceptor();
}
@Override
public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(httpInterceptorBean()).addPathPatterns("/**");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy