package com.tptj.project.hg.sso; import com.fr.invoke.Reflect; import java.util.Map; import java.util.Set; /** * @author 秃破天际 * @version 10.0 * Created by 秃破天际 on 2021-05-12 **/ public class BaseUtils { public static void copy( T from, T to ){ Set> entries = Reflect.on(from).fields().entrySet(); for( Map.Entry entry : entries ){ Reflect.on(to).set( entry.getKey(), entry.getValue().get() ); } } }