java中获取当前方法的名称
Thread.currentThread().getStackTrace()[1].methodName数据变2,往上递推。 可以根据自己的需求调用 。
2021-06-05
hcb