Tag:requestcontextholder
All the articles with the tag "requestcontextholder".
Spring RequestContextHolder and Thread Local Inheritance
Posted on:February 3, 2022 (22 min read)Spring allows exposing HTTP request-related data outside of the Controller class with the help of a thread-bound RequestAttributes object. But real-world applications do not process the request with a single thread. Can we use RequestAttributes with code that is running inside the thread pool?