获取方法名,通用
Thread.currentThread().getStackTrace()[1].getClassName()
非静态方法获取方法名
this.getClass().getName()
获取类名
Thread.currentThread().getStackTrace()[1].getMethodName()
获取方法名,通用
Thread.currentThread().getStackTrace()[1].getClassName()
非静态方法获取方法名
this.getClass().getName()
获取类名
Thread.currentThread().getStackTrace()[1].getMethodName()