BeanUtils copyProperties to copy Arraylist
问题 I know that BeanUtils can copy a single object to other. Is it possible to copy an arraylist. For example: FromBean fromBean = new FromBean("fromBean", "fromBeanAProp", "fromBeanBProp"); ToBean toBean = new ToBean("toBean", "toBeanBProp", "toBeanCProp"); BeanUtils.copyProperties(toBean, fromBean); How to achieve this? List<FromBean > fromBeanList = new ArrayList<FromBean >(); List<ToBean > toBeanList = new ArrayList<ToBean >(); BeanUtils.copyProperties(toBeanList , fromBeanList ); Its not