Description Below I present you two different ways to get the current Class: Using Thread ...
Description Below I present you two different ways to get the current Class: Using Thread ...
获取class名: this.getClass().getName(); 或者 Thread.currentThread().getStackTrace()[1].getClassName(); 获取方法名: Thread.currentThread().getStackTrace ...
获取当前方法的名称空间、类名和方法名称 获取调用者类名和方法名 ...
...
1、获取当前类名: this.getClass().getSimpleName() 也可以 2、获取当前方法名: ...
JAVA中获取当前运行的类名,方法名,行数 ...
public void getjoinpoint(JoinPoint jp){ String classname=jp.getTarget().getClass().getSimpleName() ...
看源码的时候,对于找类有点作用 ...