Spring 프로젝트 컨트리뷰터 된 후기 (ThreadLocal.set(null) vs ThreadLocal.remove() )
스프링 공식문서를 보다가 ThreadLocal에 주의사항에 대한 글을 봤다. ThreadLocal instances come with serious issues (potentially resulting in memory leaks) when incorrectly using them in multi-threaded and multi-classloader environments. You should always consider wrapping a ThreadLocal in some other class and never directly use the ThreadLocal itself (except in the wrapper class).Also, you should always remember to corr..
공부/Spring
2024. 5. 24. 23:32