SPRING - get current scope

How can I access in a Spring application the current area of ​​the stream ...

In other words, how can I determine if the current thread region is a query or a system local thread?

0
source share
1 answer

Try

if (RequestContextHolder.getRequestAttributes() != null) 
   // request thread
+3
source

All Articles