当前位置: 代码迷 >> Web前端 >> 取得到当前方法及类的名字Thread.currentThread().getStackTrace()[0].getClassName()
  详细解决方案

取得到当前方法及类的名字Thread.currentThread().getStackTrace()[0].getClassName()

热度:540   发布时间:2012-08-26 16:48:06.0
获得到当前方法及类的名字Thread.currentThread().getStackTrace()[0].getClassName();

获得到当前方法及类的名字:

?

Thread.currentThread().getStackTrace()[0].getClassName();

?

Thread.currentThread().getStackTrace()[1].getClassName();

  相关解决方案