beanutils.java

来自「java网上考试系统」· Java 代码 · 共 37 行

JAVA
37
字号
/*
 * @(#)BeanUtils.java Dec 13, 2006
 * Copyright 2006 qingdaosoftware, Inc. All rights reserved
 */
package com.qrsx.exam.util;

import java.lang.reflect.InvocationTargetException;

/**
 * 
 * 功能:
 * 
 * <p>
 * <a href="com.qrsx.exam.util.BeanUtils.java"> <i>View Source </i> </a>
 * </p>
 * 
 * Company : QingdaoSoftware<br>
 * Author : <a href="mailto:wxt1013@163.com">WangXitao</a>
 * </p>
 * Version : 1.0<br>
 * Date : Dec 13, 2006<br>
 */
public class BeanUtils {

    public static <T> T copyProperties(T t, Object o) {
        try {
            org.apache.commons.beanutils.BeanUtils.copyProperties(t, o);
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (InvocationTargetException e) {
            e.printStackTrace();
        }
        return t;
    }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?