@Configuration(proxyBeanMethods=false) public class LoggingWebMvcConfigurer extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
TraceIdLoggingWebMvcInterceptor
.Constructor and Description |
---|
LoggingWebMvcConfigurer(TraceIdLoggingWebMvcInterceptor interceptor,
GcpProjectIdProvider projectIdProvider)
Constructor that accepts an
TraceIdLoggingWebMvcInterceptor . |
Modifier and Type | Method and Description |
---|---|
void |
addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addArgumentResolvers, addCorsMappings, addFormatters, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
public LoggingWebMvcConfigurer(@Autowired(required=false) TraceIdLoggingWebMvcInterceptor interceptor, GcpProjectIdProvider projectIdProvider)
TraceIdLoggingWebMvcInterceptor
. If the given
interceptor is null, then a default XCloudTraceIdExtractor
is used.interceptor
- the interceptor to use with this configurer. If not provided a
TraceIdLoggingWebMvcInterceptor
is used with the trace ID extractor
described above.projectIdProvider
- the project ID provider to useCopyright © 2020 Pivotal Software, Inc.. All rights reserved.