/**
* 获取数据类型
* @param object
* @return
*/
public static String getType(Object object){
String typeName=object.getClass().getName();
int length= typeName.lastIndexOf(".");
String type =typeName.substring(length+1);
return type;
}`
参考见:https://blog.youkuaiyun.com/qq_26676207/article/details/78040005