ThreadLocal - 동시성 문제

·
Back-End/Spring
ThreadLocal - 동시성 문제필드 동기화 - 개발TraceId를 파라미터로 넘기지 않고, 문제를 해결 할 수 있는 방법을 모색해 본다.LogTrace 인터페이스package hello.advanced.trace.logtrace;import hello.advanced.trace.TraceStatus;public interface LogTrace { TraceStatus begin(String message); void end(TraceStatus status); void exception(TraceStatus status, Exception e);}FieldLogTrace 구현체 작성package hello.advanced.trace.logtrace;import hello.advan..