获取当前执行的方法名
/**
* 获取当前执行的方法名
*/
public static String testMethodName(){
return new Exception().getStackTrace()[0].getMethodName();
}
发布时间: 2012-08-26 16:48:06 作者: rapoo
获取当前执行的方法名
/**
* 获取当前执行的方法名
*/
public static String testMethodName(){
return new Exception().getStackTrace()[0].getMethodName();
}