public class ModelAndView
extends java.lang.Object
implements java.io.Serializable
构造器和说明 |
---|
ModelAndView() |
ModelAndView(java.lang.String view) |
ModelAndView(java.lang.String view,
java.util.Map<java.lang.String,?> model) |
限定符和类型 | 方法和说明 |
---|---|
void |
clear()
清空
|
boolean |
isEmpty()
是否为空
|
java.util.Map<java.lang.String,java.lang.Object> |
model()
获取模型
|
ModelAndView |
model(java.util.Map<java.lang.String,java.lang.Object> model)
设置模型
|
ModelAndView |
put(java.lang.String key,
java.lang.Object value)
添加模型值
|
ModelAndView |
putAll(java.util.Map<java.lang.String,?> keyValues)
添加模型值
|
ModelAndView |
putIfAbsent(java.lang.String key,
java.lang.Object value)
添加模型值
|
java.lang.String |
view()
获取视图
|
ModelAndView |
view(java.lang.String view)
设置视图
|
public ModelAndView()
public ModelAndView(java.lang.String view)
public ModelAndView(java.lang.String view, java.util.Map<java.lang.String,?> model)
public java.lang.String view()
public ModelAndView view(java.lang.String view)
public java.util.Map<java.lang.String,java.lang.Object> model()
public ModelAndView model(java.util.Map<java.lang.String,java.lang.Object> model)
public ModelAndView put(java.lang.String key, java.lang.Object value)
public ModelAndView putIfAbsent(java.lang.String key, java.lang.Object value)
public ModelAndView putAll(java.util.Map<java.lang.String,?> keyValues)
public void clear()
public boolean isEmpty()