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

com.github.meazza.handler.WebAppConfigurer Maven / Gradle / Ivy

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