类的使用
org.springframework.ui.ModelMap
使用ModelMap的程序包 程序包 说明 org.springframework.orm.hibernate5.support Classes supporting theorg.springframework.orm.hibernate5
package.org.springframework.orm.jpa.support Classes supporting theorg.springframework.orm.jpa
package.org.springframework.ui Generic support for UI layer concepts.org.springframework.validation.support Support classes for handling validation results.org.springframework.web.context.request Support for generic request context holding, in particular for scoping of application objects per HTTP request or HTTP session.org.springframework.web.method.support Generic support classes for handler method processing.org.springframework.web.servlet Provides servlets that integrate with the application context infrastructure, and the core interfaces and classes for the Spring web MVC framework.org.springframework.web.servlet.mvc.support Support package for MVC controllers.org.springframework.orm.hibernate5.support中ModelMap的使用
参数类型为ModelMap的org.springframework.orm.hibernate5.support中的方法 修饰符和类型 方法 说明 void
OpenSessionInViewInterceptor. postHandle(WebRequest request, ModelMap model)
org.springframework.orm.jpa.support中ModelMap的使用
参数类型为ModelMap的org.springframework.orm.jpa.support中的方法 修饰符和类型 方法 说明 void
OpenEntityManagerInViewInterceptor. postHandle(WebRequest request, ModelMap model)
org.springframework.ui中ModelMap的使用
org.springframework.ui中ModelMap的子类 修饰符和类型 类 说明 class
ExtendedModelMap
返回ModelMap的org.springframework.ui中的方法 修饰符和类型 方法 说明 ModelMap
ModelMap. addAllAttributes(Collection<?> attributeValues)
Copy all attributes in the suppliedCollection
into thisMap
, using attribute name generation for each element.ModelMap
ModelMap. addAllAttributes(Map<String,?> attributes)
Copy all attributes in the suppliedMap
into thisMap
.ModelMap
ModelMap. addAttribute(Object attributeValue)
Add the supplied attribute to thisMap
using agenerated name
.ModelMap
ModelMap. addAttribute(String attributeName, Object attributeValue)
Add the supplied attribute under the supplied name.ModelMap
ModelMap. mergeAttributes(Map<String,?> attributes)
Copy all attributes in the suppliedMap
into thisMap
, with existing objects of the same name taking precedence (i.e. not getting replaced).org.springframework.validation.support中ModelMap的使用
org.springframework.validation.support中ModelMap的子类 修饰符和类型 类 说明 class
BindingAwareModelMap
Subclass ofExtendedModelMap
that automatically removes aBindingResult
object if the corresponding target attribute gets replaced through regularMap
operations.org.springframework.web.context.request中ModelMap的使用
参数类型为ModelMap的org.springframework.web.context.request中的方法 修饰符和类型 方法 说明 void
WebRequestInterceptor. postHandle(WebRequest request, ModelMap model)
Intercept the execution of a request handler after its successful invocation, right before view rendering (if any).org.springframework.web.method.support中ModelMap的使用
返回ModelMap的org.springframework.web.method.support中的方法 修饰符和类型 方法 说明 ModelMap
ModelAndViewContainer. getDefaultModel()
Return the "default" model created at instantiation.ModelMap
ModelAndViewContainer. getModel()
Return the model to use -- either the "default" or the "redirect" model.参数类型为ModelMap的org.springframework.web.method.support中的方法 修饰符和类型 方法 说明 void
ModelAndViewContainer. setRedirectModel(ModelMap redirectModel)
Provide a separate model instance to use in a redirect scenario.org.springframework.web.servlet中ModelMap的使用
返回ModelMap的org.springframework.web.servlet中的方法 修饰符和类型 方法 说明 ModelMap
ModelAndView. getModelMap()
Return the underlyingModelMap
instance (nevernull
).org.springframework.web.servlet.mvc.support中ModelMap的使用
org.springframework.web.servlet.mvc.support中ModelMap的子类 修饰符和类型 类 说明 class
RedirectAttributesModelMap