From f5ba9952db59edece1531e4589c4a189721a4be3 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Sat, 3 Nov 2018 16:35:03 +0100 Subject: [PATCH] Make UndertowAccessLogCustomizer conditional on class Closes gh-15065 --- .../web/servlet/ServletManagementChildContextConfiguration.java | 1 + 1 file changed, 1 insertion(+) diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/web/servlet/ServletManagementChildContextConfiguration.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/web/servlet/ServletManagementChildContextConfiguration.java index 9e36432830..9457d80db8 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/web/servlet/ServletManagementChildContextConfiguration.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/web/servlet/ServletManagementChildContextConfiguration.java @@ -70,6 +70,7 @@ class ServletManagementChildContextConfiguration { } @Bean + @ConditionalOnClass(name = "io.undertow.Undertow") public UndertowAccessLogCustomizer undertowAccessLogCustomizer() { return new UndertowAccessLogCustomizer(); }