zoukankan      html  css  js  c++  java
  • Model、ModelMap ModelAndView

    public class ExtendedModelMap extends ModelMap implements Model


    /**

     * Holder for both Model and View in the web MVC framework.

     * Note that these are entirely distinct. This class merely holds

     * both to make it possible for a controller to return both model

     * and view in a single return value.

     *

     * <p>Represents a model and view returned by a handler, to be resolved

     * by a DispatcherServlet. The view can take the form of a String

     * view name which will need to be resolved by a ViewResolver object;

     * alternatively a View object can be specified directly. The model

     * is a Map, allowing the use of multiple objects keyed by name.

     *

     * @author Rod Johnson

     * @author Juergen Hoeller

     * @author Rob Harrop

     * @see DispatcherServlet

     * @see ViewResolver

     * @see HandlerAdapter#handle

     * @see org.springframework.web.servlet.mvc.Controller#handleRequest

     */

    public class ModelAndView {

    /** View instance or view name String */

    private Object view;

    /** Model Map */

    private ModelMap model;

    }

  • 相关阅读:
    TCP和UDP知识总结
    使用 DataX 增量同步数据(转)
    python对象类型
    Asp.net mvc使用SignaIR
    数据库分库分表思路 [转]
    Linux基本操作 [转]
    RabbitMQ入门教程 [转]
    设计模式
    设计模式六大原则
    Javascript实现数组去重 [转]
  • 原文地址:https://www.cnblogs.com/feng9exe/p/12121259.html
Copyright © 2011-2022 走看看