1, to obtain the current class name:
Thread.currentThread().getStackTrace()[1].getClassName()
2. Get the current method name:
Thread.currentThread().getStackTrace()[1].getMethodName()
1, to obtain the current class name:
Thread.currentThread().getStackTrace()[1].getClassName()
2. Get the current method name:
Thread.currentThread().getStackTrace()[1].getMethodName()