Код: Выделить всё
Код: Выделить всё
typeHandler="com.gd.frame.mybatis.core.type.JsonLongSetTypeHandler"/>
Код: Выделить всё
The content of element type "resultMap" must match "(constructor?,id*,result*,association*,collection*,discriminator?)
Код: Выделить всё
1-constructor?,2-id*,3-result*,4-association*,5-collection*,6-discriminator
Код: Выделить всё
private set postIds;
Код: Выделить всё
public classJsonLongSetTypeHandler extends AbstractJsonTypeHandler {
private static final TypeReference TYPE_REFERENCE = new TypeReference(){},
public JsonLongsetTypeHandler(){
protected Object parse(string json){return JsonUtils.parseObject(ison, TYPE_REFERENCE);
protected string toJson(object obj){
return JsonUtils.toJsonstring(obj);
}
}
Подробнее здесь: https://stackoverflow.com/questions/791 ... -result-as
Мобильная версия