参数转换

对象参数转换

@Log4j
public final class ParamConvertUtils {
        /**
     * copy对象属性
     *
     * @param source
     * @return
     */
    public static void convertParam(Object target, Object source) {
        if (source != null) {
            BeanUtils.copyProperties(source, target);
        }
    }
}

 

posted @ 2019-12-02 17:22  努力的小白菜  阅读(176)  评论(0编辑  收藏  举报