BeanUtils.copyProperties(plan,poiInterchangePortPlanInfo);
当我们开启阿里代码扫描插件时,如果你使用了 Apache BeanUtils.copyProperties 进行属性拷贝,它会给你一个非常严重的警告。因为,Apache BeanUtils性能较差,可以使用 Spring BeanUtils 或者 Cglib BeanCopier 来代替。
BeanUtils.copyProperties(plan,poiInterchangePortPlanInfo);
public boolean setInfo() throws Exception {
BeanUtils.copyProperties(yy,xx);
return true;
}