摘要:
适用于非静态方法:this.getClass().getName() 适用于静态方法:Thread.currentThread().getStackTrace()[1].getClassName() 获取类名: 1、在类的实例中可使用this.getClass().getName();但在stati 阅读全文
posted @ 2018-07-25 14:29
杜先武
阅读(6489)
评论(0)
推荐(0)
![]() |
资深软件工程师。关注.net、C#、MVC、Java、Spring、Spring boot、Spring cloud、Lucene、ElasticSearch、elk、spark&&ALS。 个人网站 www.a-du.net |