1.Set<String> 转 String[]
Set<String> ss = jedis.hkeys(key);
String[] s = ss.toArray(new String[ss.size()]);
2.List<String> 转 String[]
List<String> list = jedis.hmget(key,serviceID);
String[] s = list.toArray(new String[list.size()]);
3.String[]转List<String>
Arrays.asList(str);