使用BeanUtilsBean.getInstance().copyProperties(entity, this)这个方法,把一个Vo转换成实体Bean,是不是Vo的所有字段必须和实体Bean对应?如果Vo内有很多实体Bean没有的字段会怎样
引用原文 API 接口[quote]Copy property values from the origin bean to the destination bean for all cases where the property names are the same.[/quote]
如果相同的属性将会被复制.
如果不相同就不复制.保持VO中的初始值