【Java】+获取当前方法、类的名称
1、获取当前方法名称:Thread.currentThread() .getStackTrace()[1].getMethodName()
2、获取当前类的名称:this.getClass().getName()
如果忍耐算是坚强 我选择抵抗 如果妥协算是努力 我选择争取
1、获取当前方法名称:Thread.currentThread() .getStackTrace()[1].getMethodName()
2、获取当前类的名称:this.getClass().getName()