Bean 复制属性

  BeanUtils.copyProperties();
 
1、package org.springframework.beans;中的
 BeanUtils.copyProperties(A,BVo);
     是A中的值付给B
 
2、package org.apache.commons.beanutils;(常用)
BeanUtils.copyProperties(AVo,B);
      是B中的值付给A
posted @ 2023-01-06 17:15  2一念轮回2  阅读(28)  评论(0)    收藏  举报