java 获取当前方法名

String _thisMethodName =  new Exception().getStackTrace()[0].getMethodName();// 获得当前的方法名 
原文地址:https://www.cnblogs.com/yue31313/p/7662281.html