diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/LogFileMvcEndpoint.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/LogFileMvcEndpoint.java index 59780dfe7da..532896dd2de 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/LogFileMvcEndpoint.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/LogFileMvcEndpoint.java @@ -147,6 +147,12 @@ public class LogFileMvcEndpoint implements MvcEndpoint, EnvironmentAware { Handler(Resource resource) { this.resource = resource; + try { + afterPropertiesSet(); + } + catch (Exception ex) { + throw new IllegalStateException(ex); + } } @Override