Monthly Archive: July 2017

In this post I am going to show how to copy MDC data from Web threads to @Async threads using a brand new Spring Framework 4.3 feature: ThreadPoolTaskExecutor#setTaskDecorator() [set-task-decorator]. This is the end result: Notice the third and second last log lines: they have [userId:Duke] just left of the log level. The first line is… Continue Reading