java获取当前类类名

来源:互联网 发布:有思度软件 编辑:程序博客网 时间:2024/06/03 04:17

法一:String s = this.getClass().getName();

法二:String s = Thread.currentThread().getStackTrace()[1].getClassName();

0 0