类的使用
org.springframework.ui.ModelMap
使用ModelMap的程序包 程序包 说明 org.springframework.orm.hibernate5.support Classes supporting theorg.springframework.orm.hibernate5package.org.springframework.orm.jpa.support Classes supporting theorg.springframework.orm.jpapackage.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中的方法 修饰符和类型 方法 说明 voidOpenSessionInViewInterceptor. postHandle(WebRequest request, ModelMap model)org.springframework.orm.jpa.support中ModelMap的使用
参数类型为ModelMap的org.springframework.orm.jpa.support中的方法 修饰符和类型 方法 说明 voidOpenEntityManagerInViewInterceptor. postHandle(WebRequest request, ModelMap model)org.springframework.ui中ModelMap的使用
org.springframework.ui中ModelMap的子类 修饰符和类型 类 说明 classExtendedModelMap返回ModelMap的org.springframework.ui中的方法 修饰符和类型 方法 说明 ModelMapModelMap. addAllAttributes(Collection<?> attributeValues)Copy all attributes in the suppliedCollectioninto thisMap, using attribute name generation for each element.ModelMapModelMap. addAllAttributes(Map<String,?> attributes)Copy all attributes in the suppliedMapinto thisMap.ModelMapModelMap. addAttribute(Object attributeValue)Add the supplied attribute to thisMapusing agenerated name.ModelMapModelMap. addAttribute(String attributeName, Object attributeValue)Add the supplied attribute under the supplied name.ModelMapModelMap. mergeAttributes(Map<String,?> attributes)Copy all attributes in the suppliedMapinto 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的子类 修饰符和类型 类 说明 classBindingAwareModelMapSubclass ofExtendedModelMapthat automatically removes aBindingResultobject if the corresponding target attribute gets replaced through regularMapoperations.org.springframework.web.context.request中ModelMap的使用
参数类型为ModelMap的org.springframework.web.context.request中的方法 修饰符和类型 方法 说明 voidWebRequestInterceptor. 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中的方法 修饰符和类型 方法 说明 ModelMapModelAndViewContainer. getDefaultModel()Return the "default" model created at instantiation.ModelMapModelAndViewContainer. getModel()Return the model to use -- either the "default" or the "redirect" model.参数类型为ModelMap的org.springframework.web.method.support中的方法 修饰符和类型 方法 说明 voidModelAndViewContainer. setRedirectModel(ModelMap redirectModel)Provide a separate model instance to use in a redirect scenario.org.springframework.web.servlet中ModelMap的使用
返回ModelMap的org.springframework.web.servlet中的方法 修饰符和类型 方法 说明 ModelMapModelAndView. getModelMap()Return the underlyingModelMapinstance (nevernull).org.springframework.web.servlet.mvc.support中ModelMap的使用
org.springframework.web.servlet.mvc.support中ModelMap的子类 修饰符和类型 类 说明 classRedirectAttributesModelMap