Propagating Tenant data to Spawned/Async Threads with ThreadLocalTargetSource, TaskDecorator in Multi-tenant Spring Boot applications

1. OVERVIEW In late 2017, I published a blog post about using Spring’s ThreadLocalTargetSource as an alternative to dealing explicitly with ThreadLocal in Spring Boot Multi-tenant applications . Where did I use ThreadLocal that I found Spring ’s ThreadLocalTargetSource a useful alternative? Let’s start with some context. Earlier that same year I had published writing multi-tenant RESTful…