String methodName = Thread.currentThread().getStackTrace()[1].getMethodName();//该片段来自于http://www.codesnippet.cn/detail/12122012921.html
来源: http://www.codesnippet.cn/detail/12122012921.html