风的旅行

2018年11月23日

map和list循环遍历

摘要: 1 //map遍历(zmm是实体类) 2 3 Map maps = new HashMap(); 4 5 //给map存值; 6 7 maps.put(username, zmm); 8 9 //把maps集合循环遍历 10 for (String key : maps.keySet()) { 11 12 //用key值取出value; 13 14 String ... 阅读全文

posted @ 2018-11-23 17:31 风的旅行 阅读(2563) 评论(0) 推荐(1) 编辑

向数据库批量处理事件

摘要: 1 Connection conn; 2 Class.forName("com.mysql.jdbc.Driver"); 3 conn = DriverManager.getConnection( 4 "jdbc:mysql://88.88.88.88:3306/zmm?useUnicode=true&characterEncoding=UTF-8", "root", "root");... 阅读全文

posted @ 2018-11-23 17:15 风的旅行 阅读(178) 评论(0) 推荐(0) 编辑

导航