摘要: Struts2 中, HTML 表单将被直接映射到一个 POJO,通过params拦截器,类中定义对应属性,及对应set方法即可。 Struts2 中,任何一个POJO都可以是一个action类。 Struts2 会为每一个 HTTP 请求创建一个新的 Action 类的实例,即 Action 不是 阅读全文
posted @ 2016-12-29 17:42 Orc_Warrior 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 1、根据map的值,升序排序 1 Map<String, Integer> map = new TreeMap<String, Integer>(); 2 map.put("d", 1); 3 map.put("b", 2); 4 map.put("a", 3); 5 map.put("c", 4) 阅读全文
posted @ 2016-12-29 16:33 Orc_Warrior 阅读(250) 评论(0) 推荐(0) 编辑