Unable to find a value for "字段名" in object of class java.lang.String using operator "."

今天在做c标签的forEach循环时,老是报jsp错:


Unable to find a value for "字段名" in object of class java.lang.String using operator "."


经过仔细排查,发现是在后台返回数据时把list加上了引号!


错误写法:resultMap.put("blackList", “blackList”);


正确写法:resultMap.put("blackList", blackList);


总结:写代码累了,导致低级错误,以后注意劳逸结合!!!


你可能感兴趣的:(Unable to find a value for "字段名" in object of class java.lang.String using operator ".")