springmvc+mybatis跳转问题,求解
@RequestMapping("destination")
public ModelAndView selectDestination(HttpServletResponse response,HttpServletRequest request)throws Exception{
Map<String,Object> map=new HashMap<String, Object>();
List<Oftenaddress> listAll = iOftenaddressService.selectobjective();
map.put("lists", listAll);
System.out.println("list............");
for (Oftenaddress oftenaddress : listAll) {
System.out.println(oftenaddress.getUserCode());
}
System.out.println(listAll.size());
return new ModelAndView("list", map);
}
传过来没值 id
<body>
<c:forEach items="${lists}" var="itm">
${itm.id}
</c:forEach>
</body>