java比较同一实体类中那些属性值的不同
maven引入
<dependency> <groupId>com.github.dadiyang</groupId> <artifactId>equator</artifactId> <version>1.0.4</version> </dependency>
调用:
Equator equator = new GetterBaseEquator(); List<FieldInfo> diff = equator.getDiffFields(oldObject, object);
有帮助的点个赞哦~