a7d46171a0e48c97c2f9ad34c0f4be8ed4629875
[sdc/sdc-workflow-designer.git] /
1 package org.onap.sdc.workflow.logging.config;
2
3 import org.onap.sdc.workflow.logging.LoggingInterceptor;
4 import org.springframework.beans.factory.annotation.Autowired;
5 import org.springframework.context.annotation.Configuration;
6 import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
7 import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
8
9 @Configuration
10 public class InterceptorConfig implements WebMvcConfigurer {
11
12     @Autowired
13     LoggingInterceptor loggingInterceptor;
14
15     @Override
16     public void addInterceptors(InterceptorRegistry registry) {
17         registry.addInterceptor(loggingInterceptor);
18     }
19 }