java获取类名不包括路径

class.getSimpleName(),就能获得仅仅的类名

class.getName()获得的是全路径的类名

原文地址:https://www.cnblogs.com/panxuejun/p/7240559.html