在handle方法里往ModelAndView变量里设好要传给视图的值就可以了吧,为什么另外会有个@modelattribute?求指点为什么要用@modelattribute?
用modelmap 最好
看需求了,也看项目的要求了@ModelAttribute还是有它的优点的,但是最好不要和@SessionAttribute一起使用,不过我在项目中用的比较少