public static void main(String[] args) { System.out.println((char) ('Z' + 3)); System.out.println(StringUtil.decode("%E6%98%A5")); Map m = new HashMap(); m.put("success", true); Map m2 = new HashMap(); m2.put("success", "sdfsdf"); System.out.println(JsonUtil.writeValue(m)); System.out.println(JsonUtil.writeValue(m2)); }
/** * 获得combobox下拉填充数据,id-->id codename-->name * * @param codeType * @return * @author wangt 2014年11月26日 上午10:11:32 */ @Override public List<Map<String, String>> getComboboxId2NameByType(String codeType) { List<TProperties> lP = this.getPropertiesByCodeType(codeType); List<Map<String, String>> lst = new ArrayList<Map<String, String>>(); if (lP.size() > 0) { for (TProperties p : lP) { Map<String, String> m = new HashMap<String, String>(); m.put("id", StringUtil.getString(p.getId())); m.put("name", p.getCodename()); lst.add(m); } return lst; } return null; }