适用于非静态方法:this.getClass().getName() 适用于静态方法:Thread.currentThread().getStackTrace()[1].getClassName()
本文标题:获取当前类名
本文链接:https://www.haomeiwen.com/subject/fnebpqtx.html
网友评论