|
|
|
@ -30,7 +30,6 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplicat
|
|
|
|
|
import org.springframework.boot.web.embedded.tomcat.TomcatReactiveWebServerFactory;
|
|
|
|
|
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
|
|
|
|
|
import org.springframework.boot.web.server.WebServerFactoryCustomizer;
|
|
|
|
|
import org.springframework.context.ApplicationContext;
|
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -47,7 +46,7 @@ public class TomcatMetricsAutoConfiguration {
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
|
@ConditionalOnMissingBean(TomcatMetrics.class)
|
|
|
|
|
public TomcatMetrics tomcatMetrics(ApplicationContext applicationContext) {
|
|
|
|
|
public TomcatMetrics tomcatMetrics() {
|
|
|
|
|
return new TomcatMetrics(this.context == null ? null : this.context.getManager(),
|
|
|
|
|
Collections.emptyList());
|
|
|
|
|
}
|
|
|
|
|