日期:2014-05-20 浏览次数:20897 次
public static List skipList = split("lastUpdatedStamp,lastUpdatedTxStamp,createdStamp,createdTxStamp,namespace", ",");
split("lastUpdatedStamp,lastUpdatedTxStamp,createdStamp,createdTxStamp,namespace", ","); "lastUpdatedStamp,lastUpdatedTxStamp,createdStamp,createdTxStamp,namespace" 这难道不是String? 返回的是数组对象而已
------解决方案--------------------
根据第二个参数“,”对第一个参数进行分割,返回一个List类型的数,这样List skipList 中就多了5个数了。
------解决方案--------------------
public static List skipList = split("lastUpdatedStamp,lastUpdatedTxStamp,createdStamp,createdTxStamp,namespace", ",");
这句话就是说把字符串lastUpdatedStamp,lastUpdatedTxStamp,createdStamp,createdTxStamp,namespace按","分隔开来,即:lastUpdatedStamp lastUpdatedTxStamp createdStamp createdTxStamp namespace五个字符串放到 skipList 中.