public static Map<String,Object> objectToMap(Object obj) throws Exception{
        return objectMapper.readValue(objectMapper.writeValueAsBytes(obj), Map.class);
    }
Reason:
Date: 2018/6/27
Company: www.dtstack.com
@author xuchao
core/src/main/java/com/dtstack/flink/sql/util/PluginUtil.java