Class DevToolsEnablementDeducer
java.lang.Object
org.springframework.boot.devtools.system.DevToolsEnablementDeducer
Utility to deduce if DevTools should be enabled in the current context.
- Since:
- 2.2.0
- Author:
- Madhura Bhave
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
shouldEnable
(Thread thread) Checks if a specificStackTraceElement
in the current thread's stacktrace should cause devtools to be disabled.
-
Method Details
-
shouldEnable
Checks if a specificStackTraceElement
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
-