接口 SpringBootExceptionReporter

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

@FunctionalInterface public interface SpringBootExceptionReporter
Callback interface used to support custom reporting of SpringApplication startup errors. reporters are loaded through the SpringFactoriesLoader and must declare a public constructor with a single ConfigurableApplicationContext parameter.
从以下版本开始:
2.0.0
作者:
Phillip Webb
另请参阅:
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    Report a startup failure to the user.
  • 方法详细资料

    • 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.