Is there a good tool library for Java to aggregate data at the gateway layer?

  1. background is done by service gateway and Java, because interfaces often need some field name aggregation, so there will be a lot of duplicate code

for example

class HomeDto{
    int childId;
    String childName;
    int homeId;
    String homeName;
}

class ClazzDto {
    int childId;
    String childName;
}

this child will spread around with the interface, there will be a lot of duplicate code, is there a solution

Apr.08,2022

you can learn about GraphQL

Menu