close

當發生java.util.ArrayList cannot be cast to java.lang.Long或是 [B cannot be cast to java.lang.Long

可能的原因是多個instance同時連接redis造成。

解決的辦法:

以synchronized限制 db操作時只能有一個instance進行。

arrow
arrow
    全站熱搜

    抹茶獅子 發表在 痞客邦 留言(0) 人氣()