返回ModelAndView对象,给这个对象赋值就行了
Person p =new Person(); p.setAge(20); p.setName("jayjay");map.put("p", p);这样你在试试