All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.potato.web.Result Maven / Gradle / Ivy

Go to download

以约定优于配置的思想,结合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