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

cn.potato.helper.BeanHelper Maven / Gradle / Ivy

Go to download

以约定优于配置的思想,结合SpringMVC的一些优点(参数自动注入),实现一个自己的简单MVC框架。

The newest version!
package cn.potato.helper;
import java.lang.reflect.InvocationTargetException;
import org.apache.commons.beanutils.BeanUtils;


/**
 * Bean操作助手
 * @author 李恒名
 * @since 2016年3月18日
 */
public class BeanHelper extends Helper{
	private BeanHelper(){}
	
	public static void setProperty(Object bean, String name, Object value) throws IllegalAccessException, InvocationTargetException{
		 BeanUtils.setProperty(bean, name, value);
	  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy