How can I access, throughout a Spring application, the current thread scope...
In other words, how can I identify if the current thread scope is a request or a system local thread ?
Try with
if (RequestContextHolder.getRequestAttributes() != null)
// request thread
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With