com.github.meazza.handler.WebAppConfigurer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-boot-request-copy Show documentation
Show all versions of spring-boot-request-copy Show documentation
Provide Spring MVC @RequestCopy annotation
package com.github.meazza.handler;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
@Configuration
@ConditionalOnProperty(name = "request-copy", havingValue = "true")
public class WebAppConfigurer extends WebMvcConfigurerAdapter {
@Override
public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(new RequestHandlerInterceptor()).addPathPatterns("/**");
super.addInterceptors(registry);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy