实体转对象
方法一,一句搞定,直接返回map对象: import org.springframework.cglib.beans.BeanMap; BeanMap.create(entityObj);
方法二:利用反射——详见原文