SpringMVC的数据响应

SpringMVC的数据响应方式主要有页面跳转和回写数据

页面跳转:直接返回字符串

即https://www.cnblogs.com/maomaodesu/p/12268886.html中主要介绍的方式。

页面跳转:通过ModelAndView对象返回

回写数据:直接返回字符串

回写数据:返回对象或集

猜你喜欢

转载自www.cnblogs.com/maomaodesu/p/12283730.html