Throwable state = new Throwable();StackTraceElement[] stackTraces = state.getStackTrace();for (StackTraceElement st : stackTraces) { System.out.println(st.toString());}通过StackTraceElement,我们可以获得当前的Class,Filename,LineNumber,MethodName
Throwable state = new Throwable();StackTraceElement[] stackTraces = state.getStackTrace();for (StackTraceElement st : stackTraces) { System.out.println(st.toString());}通过StackTraceElement,我们可以获得当前的Class,Filename,LineNumber,MethodName
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货