String methodName = Thread.currentThread().getStackTrace()[1].getMethodName(); System.out.println(methodName);
打印出当前方法的名称
猜你喜欢
转载自kanpiaoxue.iteye.com/blog/2406063
今日推荐
周排行