参数转换

对象参数转换

@Log4j
public final class ParamConvertUtils {
        /**
     * copy对象属性
     *
     * @param source
     * @return
     */
    public static void convertParam(Object target, Object source) {
        if (source != null) {
            BeanUtils.copyProperties(source, target);
        }
    }
}
原文地址:https://www.cnblogs.com/lxk233/p/11971973.html