Class 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.
Since:
2.2.0
Author:
Madhura Bhave
  • Method Details

    • 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.
      Parameters:
      thread - the current thread
      Returns:
      true if devtools should be enabled