@Slf4j log.info输出List集合
log.info("\\n当前客服在线列表为:{}", Arrays.asList(cache.getCacheList(CacheKey.KEFUALLLIST.v())));log.info("\\n当前客服在线列表为aaaaa:{}", JSON.toJSONString(cache.getCacheList(CacheKey.KEFUALLLIST.v())));
输出结果
当前客服在线列表为:[[KeFu(kefuId=1, kefuName=null, kefuPhone=null, password=null, status=1, connectNum=0, token=null)]]
当前客服在线列表为aaaaa:[{"connectNum":0,"kefuId":"1","status":1}]