为了防止内存泄露,一旦threadlocal完成任务,最好调用remove()
详见:ThreadLocal explained
首页:
raindream
GitHub:
https://github.com/rain-bjtu