摘要: 1、put(H key, HK hashKey, HV value) 新增hashMap值。 redisTemplate.opsForHash().put("hashValue","map1","map1-1"); redisTemplate.opsForHash().put("hashValue" 阅读全文
posted @ 2020-08-09 12:24 猿码哥 阅读(14031) 评论(0) 推荐(0) 编辑
摘要: /** * * @author puxiaozhe * @description 过滤掉map集合中key或value为空的值 * @date 2020-08-08 **/public class MapRemoveNullUtil { /** * 移除map中空key或者value空值 * * @ 阅读全文
posted @ 2020-08-09 12:12 猿码哥 阅读(1518) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { // 循环遍历Map的4中方法 Map<Integer, Integer> map = new HashMap<Integer, Integer>(); map.put(1, 2); // 1. entrySet遍历, 阅读全文
posted @ 2020-08-09 12:09 猿码哥 阅读(186) 评论(0) 推荐(0) 编辑
摘要: public class SignUtils { /** * 获取key的方法 * @param inMap * @param keys * @return */ private static StringBuffer getKeys(Map<String, String> inMap,List<S 阅读全文
posted @ 2020-08-09 11:04 猿码哥 阅读(875) 评论(0) 推荐(0) 编辑