controller方法的返回值

1.返回ModelAndView 在方法的最後需要定義ModelAndView,對model和view分別定義。 2.返回String 返回的是邏輯視圖名. (一) (一)forward (request可以共享) return 「forward:xxx.action」; (二)redirect return 「redict:xxx.action」; 3.返回void 在方法性參數可以定義requ
相關文章
相關標籤/搜索