Home > Back-end >  Java backend database query historical data back to the browser side parameter configuration problem
Java backend database query historical data back to the browser side parameter configuration problem

Time:10-01

I now Web layer

//browser enter localhost/SSM/baseline/32 returns the corresponding json data
@ GetMapping ("/baseline/{id} ")
@ ResponseBody
Public List The.findall (@ PathVariable Integer id (" id ")) {
System. The out. Println (" site id: "+ id);

//List Data=https://bbs.csdn.net/topics/service.findByTableName (" baseline_32_168 ");
List Data=https://bbs.csdn.net/topics/service.findByStation (id);
The Collections. Reverse (data);
Return the data.
}


XML file Limit in 14, the browser can return 14 data,


If I want to query the historical data, such as the 2020-04-04 00:00:00-2020-04-04 07:00:00 data, how to configure @ GetMapping data can be returned to the browser side?? Rookie refer to?

CodePudding user response:

In Google input localhost/SSM/baseline/32 the data returned to normal
  • Related