Home > Back-end >  SpringBoot how to deal with the paging data interface to return
SpringBoot how to deal with the paging data interface to return

Time:09-25

SpringBoot how to deal with the paging data interface to return to, I now have a demand, is called a query interface, he would give me the paging data back, and I need to decide the data of my hands in the presence of these data paging, how should I do a logical, is how to put the paging data set to a List, or how to turn the pages determine whether matching the data of my hands

CodePudding user response:

Your data should be similar to the file type, first of all your data and your return is consistent with the data format, is very simple in comparison

CodePudding user response:

Are you in the client or server

A collection of elements in A if in B in the collection, the B set with hashtableB record, query whether in hashtableB A

CodePudding user response:

Other do not say first, first of all, this demand is fucking, why don't you according to the reference to the query?

If there is such a scenario, you can get a global map, circulation, the existence of record and in turn will return; Improve the performance of

CodePudding user response:

refer to the second floor tianfang response:
are you in the client or server

A collection of elements in A if in B in the collection, the B set with hashtableB record, query A if in hashtableB

Is on the server, now I struggle is the service side should be how to deal with the paging data, the interface will be returned to us a lot of user information, is to use paging is returned to me, and my hand has a user ID, need to interface data returned by the match, now here is the card in the treatment of the paging data

CodePudding user response:

reference 1st floor also night reply:
your data should be similar to the type of the file, first of all your data and your return is consistent with the data format, it's very simple comparison,

I now struggle is the service side should be how to deal with the paging data, the interface will be returned to us a lot of user information, is to use paging is returned to me, and my hand has a user ID, need to interface returned data matching, is stuck in processing paging data here now
  • Related