1、使用model.addAttribute()方法进行数据回显
2、使用@ModelAttribute(value="item"),value的值相当于key
3、@ModelAttribute将方法返回值传到页面
@ModelAttribute(value="itemsType")
public Map<String,String> getItemsType() throws Exception{
HashMap<String, String> itemsType=new HashMap<String,String>();
itemsType.put("001", "数码");
itemsType.put("002", "服装");
return itemsType;
}