diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/logging/AutoConfigurationReportLoggingInitializer.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/logging/AutoConfigurationReportLoggingInitializer.java index 240b1da25a..2a7aada437 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/logging/AutoConfigurationReportLoggingInitializer.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/logging/AutoConfigurationReportLoggingInitializer.java @@ -19,7 +19,6 @@ package org.springframework.boot.autoconfigure.logging; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.springframework.boot.SpringBootVersion; import org.springframework.boot.autoconfigure.condition.ConditionEvaluationReport; import org.springframework.boot.context.event.ApplicationFailedEvent; import org.springframework.boot.logging.LogLevel; @@ -99,9 +98,10 @@ public class AutoConfigurationReportLoggingInitializer if (!this.report.getConditionAndOutcomesBySource().isEmpty()) { if (isCrashReport && this.logger.isInfoEnabled() && !this.logger.isDebugEnabled()) { - this.logger.info(String.format("%n%nError starting ApplicationContext. " - + "To display the auto-configuration report re-run your application with debug enabled,%n" - + "see also %s%n%n", createStartupFailureDocUrl())); + this.logger.info(String + .format("%n%nError starting ApplicationContext. To display the " + + "auto-configuration report re-run your application with " + + "'debug' enabled.")); } if (this.logger.isDebugEnabled()) { this.logger.debug(new ConditionEvaluationReportMessage(this.report)); @@ -109,13 +109,6 @@ public class AutoConfigurationReportLoggingInitializer } } - private String createStartupFailureDocUrl() { - String bootVersion = SpringBootVersion.getVersion(); - String version = bootVersion != null ? bootVersion : "current"; - return String.format( - "http://docs.spring.io/spring-boot/docs/%s/reference/html/boot-features-spring-application.html#boot-features-startup-failure", version); - } - private class AutoConfigurationReportListener implements GenericApplicationListener { @Override diff --git a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index 90819ce66b..63ae74c043 100644 --- a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -50,7 +50,6 @@ such as the user that launched the application. [boot-features-startup-failure] === Startup failure - If your application fails to start, registered `FailureAnalyzers` get a chance to provide a dedicated error message and a concrete action to fix the problem. For instance if you start a web application on port `8080` and that port is already in use, you should see