- RequestContextHolder 다른 스레드에서 사용 https://gompangs.tistory.com/entry/Spring-RequestContextHolder
- async 처리시 로깅을 위해 ThreadLocal, MDC, 그리고 TaskDecorator 를 활용해보자
https://blog.gangnamunni.com/post/mdc-context-task-decorator/
- RequestContextHolder 다른 스레드에서 사용 - TaskDecorator 이용
https://stackoverflow.com/questions/23732089/how-to-enable-request-scope-in-async-task-executor#The%20easiest%20way%20is%20to%20use%20a%20task%20decorator%20like%20this:
- spring-boot 3.x.x ThreadLocal 문제
https://github.com/spring-projects/spring-boot/issues/36763
'spring-boot' 카테고리의 다른 글
spring-boot cache with redis (0) | 2022.05.25 |
---|---|
spring-boot without WAS (0) | 2022.05.16 |
validation message 처리 (0) | 2022.03.28 |
boot환경에서 JNDI사용하기 (0) | 2022.03.09 |
security OR filter에서 RequestMapoingHandlerMapping 사용시 에러 (0) | 2022.02.23 |