Difference between org.apache.commons.beanutils.BeanUtils and org.springframework.beans.BeanUtils

Difference between org.apache.commons.beanutils.BeanUtils and org.springframework.beans.BeanUtils

 

 

Apache's beanuntils will become 0 when it encounters the null of int/long for copying

Spring's beanuntils will normally have different left and right positions between the two des target objects and the src source object.

Pay attention when replacing apache.BeanUtils

 

At present, the tool class of copylist uses apache, so when int/long is null, it will become 0. It is necessary to decompile and change it.

 

 

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326069356&siteId=291194637