获得到当前方法及类的名字:
Thread.currentThread().getStackTrace()[0].getClassName();
Thread.currentThread().getStackTrace()[1].getClassName();
获得到当前方法及类的名字:
Thread.currentThread().getStackTrace()[0].getClassName();
Thread.currentThread().getStackTrace()[1].getClassName();