微信扫一扫
线程池execute线程后,用Thread.currentThread().getName() 获取不到本来的名字。 解决办法: 在线程的方法里面,用this.getName() 即可。
相关推荐