构造器和说明 |
---|
ModelAndView() |
ModelAndView(Map<String,Object> model,
String view)
Create a model view object with data
|
ModelAndView(String view)
Create an empty view
|
限定符和类型 | 方法和说明 |
---|---|
void |
add(String key,
Object value)
Add data to model
|
void |
addAll(Map<String,Object> attributes)
Add attributes to model
|
Map<String,Object> |
getModel() |
String |
getView() |
void |
remove(String key)
Remove model data
|
void |
setModel(Map<String,Object> model)
Setting model
|
void |
setView(String view)
Setting view page
|
String |
toString() |
public ModelAndView()
public ModelAndView(String view)
view
- view pagepublic void remove(String key)
key
- keypublic String getView()
public void setView(String view)
view
- view pagepublic void addAll(Map<String,Object> attributes)
attributes
- current request attributesCopyright © 2019. All rights reserved.