Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package cl.awto.microservice.poinvoice.interceptor.handler;
- 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 InterceptorConfig implements WebMvcConfigurer {
- private SecurityInterceptor securityInterceptor;
- public InterceptorConfig(SecurityInterceptor securityInterceptor) {
- this.securityInterceptor = securityInterceptor;
- }
- @Override
- public void addInterceptors(InterceptorRegistry registry) {
- registry.addInterceptor(securityInterceptor);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement