类 DevToolsEnablementDeducer

java.lang.Object
org.springframework.boot.devtools.system.DevToolsEnablementDeducer

public final class DevToolsEnablementDeducer extends Object
Utility to deduce if DevTools should be enabled in the current context.
从以下版本开始:
2.2.0
作者:
Madhura Bhave
  • 方法详细资料

    • shouldEnable

      public static boolean shouldEnable(Thread thread)
      Checks if a specific StackTraceElement in the current thread's stacktrace should cause devtools to be disabled. Devtools will also be disabled if running in a native image.
      参数:
      thread - the current thread
      返回:
      true if devtools should be enabled