属性が同じオブジェクトのクイック割り当て方法
288 ワード
import org.springframework.beans.BeanUtils;
BeanUtils.copyProperties(cartItem, orderItem); // cartItem orderItem ,
import org.springframework.beans.BeanUtils;
BeanUtils.copyProperties(cartItem, orderItem); // cartItem orderItem ,