接口 SpringBootExceptionReporter

  • 函数接口:
    这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

    @FunctionalInterface
    public interface SpringBootExceptionReporter
    Callback interface used to support custom reporting of SpringApplication startup errors. reporters are loaded via the SpringFactoriesLoader and must declare a public constructor with a single ConfigurableApplicationContext parameter.
    从以下版本开始:
    2.0.0
    另请参阅:
    ApplicationContextAware
    • 方法详细资料

      • reportException

        boolean reportException​(Throwable failure)
        Report a startup failure to the user.
        参数:
        failure - the source failure
        返回:
        true if the failure was reported or false if default reporting should occur.