MVC 顶层设计-ModelAndView

public class V1ModelAndView {

    private String viewName;
    private Map<String,?> model;

    public V1ModelAndView(String viewName) { this.viewName = viewName; }

    public V1ModelAndView(String viewName, Map<String, ?> model) {
        this.viewName = viewName;
        this.model = model;
    }

    public String getViewName() {
        return viewName;
    }

//    public void setViewName(String viewName) {
//        this.viewName = viewName;
//    }

    public Map<String, ?> getModel() {
        return model;
    }

//    public void setModel(Map<String, ?> model) {
//        this.model = model;
//    }
}

 

上一篇:STC89C52驱动MAX7219LED点阵级联, 文字滚动效果


下一篇:【SSM 学习笔记 javaWeb IDEA】ssm的controller 传ModelAndView数据 给前台html的ajax(不用@ResponseBody)