cn.potato.web.Result Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of potato-webmvc Show documentation
Show all versions of potato-webmvc Show documentation
以约定优于配置的思想,结合SpringMVC的一些优点(参数自动注入),实现一个自己的简单MVC框架。
The newest version!
package cn.potato.web;
import java.util.HashMap;
import java.util.Map;
/**
* 类说明
* @author 李恒名
* @since 2016年3月4日
*/
public class Result {
private String viewName;
private Map model = new HashMap();
public Result addData(String key,Object value){
model.put(key, value);
return this;
}
public String getViewName() {
return viewName;
}
public Result setViewName(String viewName) {
this.viewName = viewName;
return this;
}
Map getModel() {
return model;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy