避免用Apache Beanutils进行属性的copy。
Inspection info:
避免用Apache Beanutils进行属性的copy。 说明:Apache BeanUtils性能较差,可以使用其他方案比如Spring BeanUtils, Cglib BeanCopier。
TestObject a = new TestObject();
TestObject b = new TestObject();
a.setX(b.getX());
a.setY(b.getY());

这里引入了 import org.apache.commons.beanutils.BeanUtils; 我们替换成 import org.springframework.beans.BeanUtils;
使用的时候注册 copyProperties(Object source, Object target) 的位置变换了,需要调整下目标和源的位置对调