@GetMapping("/getOrderSettingByMonth")
//事实证明对于日期类型参数不指定格式无法接收
public Result getOrderSettingByMonth(@DateTimeFormat(pattern = "yyyy-MM")@RequestParam("month") Date orderSettingDate){
// public Result getOrderSettingByMonth(@RequestParam("month") Date orderSettingDate){
Result result = orderSettingService.getByDate(orderSettingDate);
return result;
}
spring接收格式日期类型参数
最新推荐文章于 2023-09-03 23:35:04 发布
关键词由CSDN通过智能技术生成