mybaitsplus json 的List<某obj>转换报错:com.alibaba.fastjson.JSONException: syntax error, expect {, actual true, pos 1, fastjsonversion 1.2.73

    com.alibaba.fastjson.JSONException: syntax error, expect {, actual true, pos 1, fastjson-version 1.2.73


@TableField(typeHandler = FastjsonTypeHandler.class):JSON自动转换只针对List<String> List<Integer> ...

解决:

    public List<Di> getDi() {
        return di!=null? JSONArray.parseArray(di.toString(),Di.class):null;
    }

里面某obj 

    @Override
    public String toString() {
        return JSONObject.toJSONString(this);
    }
--------------------------------------------------------------------------------------------------------------------------------------------

作者:Honey_Badger —— 觉得这文章好,点一下左下角

出处:http://tk55.cnblogs.com/

原文地址:https://www.cnblogs.com/tk55/p/15735267.html