org.springframework.util.SerializationUtils

 

 

        Map<String, String> map = Maps.newHashMap();
        map.put("a", "1");
        map.put("b", "2");
        map.put("c", "3");
        byte[] serialize = SerializationUtils.serialize(map);
        Object deserialize = SerializationUtils.deserialize(serialize);
        System.out.println(deserialize);

  

posted @ 2023-10-09 14:20  草木物语  阅读(22)  评论(0编辑  收藏  举报