admin管理员组文章数量:1531692
2024年1月12日发(作者:)
return String(object, config); } /** * 将json转成object * * @param json * @return */ public static Object fromJson(String json) { return (json); } /** * 将json转成对应的对象 * * @param json * @param clazz * @return */ public static
} /** * 将javabean转化为序列化的json字符串 * * @param keyvalue * @return */ public static Object beanToJson(Object keyvalue) { String textJson = String(keyvalue); Object objectJson = (textJson); return objectJson; } /** * 将string转化为序列化的json字符串 * * @param json * @return */ public static Object textToJson(String json) { Object objectJson = (json); return objectJson; } /** * json字符串转化为map * * @param json * @return */ public static Map
版权声明:本文标题:springboot集成redis(使用fastjson在存储对象时自动转换json) 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dianzi/1705068546a121606.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论