Skip to content

Instantly share code, notes, and snippets.

@khannedy
Last active October 15, 2017 02:07
Show Gist options
  • Save khannedy/998a404b46911a46bea93eb639f4e498 to your computer and use it in GitHub Desktop.
Save khannedy/998a404b46911a46bea93eb639f4e498 to your computer and use it in GitHub Desktop.
@Configuration
public class DemoConfiguration extends WebMvcConfigurerAdapter {
@Override
public void addInterceptors(InterceptorRegistry registry) {
// Add HandlerInterceptor to Registry
registry.addInterceptor(new DemoInterceptor());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment