最新回答 / sixGod
static修飾的變量是放在方法區中的,JVM不會回收方法區中的對象,由于hashMap不會被回收,而hashMap中又一直在用著MythreadLocal對象,所以導致MythreadLocal不會被回收
2021-07-31