사용자 도구

사이트 도구


springframework:async

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
마지막 판 양쪽 다음 판
springframework:async [2022/06/28 15:43]
kwon37xi [MdcTaskDecorator.java]
springframework:async [2022/06/28 15:44]
kwon37xi [MdcTaskDecorator.java]
줄 77: 줄 77:
         // Right now: @Async thread context !         // Right now: @Async thread context !
         // (Restore the Web thread context's MDC data)         // (Restore the Web thread context's MDC data)
-        if (contextMap == null) { +        if (contextMap != null) { 
-            return;+            MDC.setContextMap(contextMap);
         }         }
-        MDC.setContextMap(contextMap);+
         runnable.run();         runnable.run();
       } finally {       } finally {
springframework/async.txt · 마지막으로 수정됨: 2023/01/26 10:20 저자 kwon37xi