springmvc可支持的返回类型

SpringMVC可支持的返回类型:

  • Model is an interface while ModelMap is a class.
  • ModelAndView is just a container for both a ModelMap and a view object. It allows a controller to return both as a single value.

Model 是一个接口, 其实现类为ExtendedModelMap,继承了ModelMap类。

更多可返回类型请查看中文文档英文文档