类 BindingAwareModelMap
- java.lang.Object
- java.util.AbstractMap<K,V>
- java.util.HashMap<K,V>
- java.util.LinkedHashMap<String,Object>
- org.springframework.ui.ModelMap
- org.springframework.ui.ExtendedModelMap
- org.springframework.validation.support.BindingAwareModelMap
public class BindingAwareModelMap extends ExtendedModelMap
Subclass ofExtendedModelMap
that automatically removes aBindingResult
object if the corresponding target attribute gets replaced through regularMap
operations.This is the class exposed to handler methods by Spring MVC, typically consumed through a declaration of the
Model
interface. There is no need to build it within user code; a plainModelMap
or even a just a regularMap
with String keys will be good enough to return a user model.- 从以下版本开始:
- 2.5.6
- 作者:
- Juergen Hoeller
- 另请参阅:
BindingResult
, 序列化表格
嵌套类概要
从类继承的嵌套类/接口 java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
构造器概要
构造器 构造器 说明 BindingAwareModelMap()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Object
put(String key, Object value)
void
putAll(Map<? extends String,?> map)
从类继承的方法 org.springframework.ui.ExtendedModelMap
addAllAttributes, addAllAttributes, addAttribute, addAttribute, asMap, mergeAttributes
从类继承的方法 org.springframework.ui.ModelMap
containsAttribute
从类继承的方法 java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
从类继承的方法 java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, putIfAbsent, remove, remove, replace, replace, size
从类继承的方法 java.util.AbstractMap
equals, hashCode, toString
从接口继承的方法 java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, putIfAbsent, remove, remove, replace, replace, size
从接口继承的方法 org.springframework.ui.Model
containsAttribute
构造器详细资料
BindingAwareModelMap
public BindingAwareModelMap()