前台将时间数据拼接进URL路径中,GET提交到后台,后台直接接收到Date数据。
前台保证好时间数据格式:
location.href = "127.0.0.1:8080/time?time=2019-6-21";
后台在接收时设置好对应的格式即可:
@RequestMapping("/time")
@ResponseBody
public time(@RequestParam("time"
前台将时间数据拼接进URL路径中,GET提交到后台,后台直接接收到Date数据。
前台保证好时间数据格式:
location.href = "127.0.0.1:8080/time?time=2019-6-21";
后台在接收时设置好对应的格式即可:
@RequestMapping("/time")
@ResponseBody
public time(@RequestParam("time"