| | |
| | | import org.springframework.web.servlet.config.annotation.InterceptorRegistry; |
| | | import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; |
| | | import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; |
| | | import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; |
| | | |
| | | @Configuration |
| | | public class Java110TraceConfigurer implements WebMvcConfigurer { |
| | | public class Java110TraceConfigurer extends WebMvcConfigurerAdapter { |
| | | @Autowired |
| | | private Java110TraceHandlerInterceptor java110TraceHandlerInterceptor; |
| | | |
| | |
| | | @Override |
| | | public void addInterceptors(InterceptorRegistry registry) { |
| | | registry.addInterceptor(java110TraceHandlerInterceptor).addPathPatterns("/**"); |
| | | super.addInterceptors(registry); |
| | | } |
| | | } |