类 DevToolsEnablementDeducer
java.lang.Object
org.springframework.boot.devtools.system.DevToolsEnablementDeducer
Utility to deduce if DevTools should be enabled in the current context.
- 从以下版本开始:
- 2.2.0
- 作者:
- Madhura Bhave
-
方法概要
修饰符和类型方法说明static boolean
shouldEnable
(Thread thread) Checks if a specificStackTraceElement
in the current thread's stacktrace should cause devtools to be disabled.
-
方法详细资料
-
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.- 参数:
thread
- the current thread- 返回:
true
if devtools should be enabled
-