add additional conditional on class in case of webflux

parent a1577127
...@@ -49,6 +49,7 @@ public class MetricsInterceptorConfiguration { ...@@ -49,6 +49,7 @@ public class MetricsInterceptorConfiguration {
@Configuration @Configuration
@ConditionalOnWebApplication @ConditionalOnWebApplication
@ConditionalOnClass(WebMvcConfigurerAdapter.class)
static class MetricsWebResourceConfiguration extends WebMvcConfigurerAdapter { static class MetricsWebResourceConfiguration extends WebMvcConfigurerAdapter {
@Bean @Bean
MetricsHandlerInterceptor servoMonitoringWebResourceInterceptor() { MetricsHandlerInterceptor servoMonitoringWebResourceInterceptor() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment