- 博客(4)
- 收藏
- 关注
原创 利用lamda表达式和方法引用进行集合遍历
list和set遍历方式: //list遍历 Arrays.toList(1,2,3,4,5).forEach(System.out::println); //map遍历 HashMap<String,String> hashMap=new HashMap<>(); hashMap.put("1","老哥"); hashMap.put("2","老弟"); hashMap.forEach((k,v)->{System.out.println("key:"+key+","+"va
2020-06-15 10:27:57
210
转载 tomcat8 redis session共享
添加下面的配置到tomcat的context.xml中 <Valve className="com.s.tomcat.redissessions.RedisSessionHandlerValve"/> <Manager className="com.s.tomcat.redissessions.RedisSessionManager" host="192.168.10.162" port="6379" database="0" password="tr
2020-06-04 21:49:33
211
原创 对于idea使用junit进行测试不能使用控制台
对于idea使用junit进行测试不能使用控制台输入的问题: vm中加入-Deditable.java.test.console=true
2020-06-02 19:53:44
190
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人