SpringMVC07——響應數據

接下來看一下在SpringMVC中怎麼去響應數據,就是怎麼把controller中得到的數據傳遞到要跳轉的jsp頁面上去。 1.通過ModelAndView public class HelloController { @RequestMapping("/fun1") public ModelAndView fun1() { ModelAndView m=new ModelAndView(
相關文章
相關標籤/搜索