• Andy Wilkinson's avatar
    Provide better diagnostics when an application fails to start · df6c2041
    Andy Wilkinson authored
    This commit introduces a new failure analysis mechanism that can be
    used to provide diagnostics to a user when their application fails
    to start.
    
    When application context refresh fails. FailureAnalyzer
    implementations are loaded via spring.factories. The analyzers are
    called in order, with the first non-null analysis of the failure
    being used. The analysis is reported to the use by
    FailureAnalysisReporters which are also loaded via spring.factories.
    
    A single FailureAnalysisReporter is provided out of the box. It logs
    an error message with details of the analysis, providing the user
    with a description of the failure and, if available, some actions
    that they may be able to take to resolve the problem without also
    displaying a stack trace that is of little value.
    
    Two analysers are provided initially. One for an embedded servlet
    container port clash and another for BeanCurrentlyInCreationExceptions.
    More analysers are planned (for UnsatisfiedDependencyException and for
    NoUniqueBeanDefinitionException) once some updates have been made
    to Spring Framework to make those failures more amenable to analysis.
    
    Closes gh-4907
    df6c2041
Name
Last commit
Last update
.mvn Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-actuator-docs Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-deployment-tests Loading commit data...
spring-boot-devtools Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-tools Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
mvnw Loading commit data...
mvnw.cmd Loading commit data...
pom.xml Loading commit data...