会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
简单生活
博客园
首页
新随笔
联系
管理
订阅
2016年5月1日
Java中获得当前静态类的类名
摘要: 通常在打印日志的时候需要输出类名,普通类可以用this.getClass(),但是静态类没有this,直接写类名耦合度高。 参考了: https://stackoverflow.com/questions/936684/getting-the-class-name-from-a-static-met
阅读全文
posted @ 2016-05-01 07:43 InMicro
阅读(965)
评论(0)
推荐(0)
编辑