小编yaS*_*SIR的帖子

如何在spring中给requestparam中的默认日期值

@RequestMapping(value = "/getSettlements", method = RequestMethod.GET, headers = "Accept=application/json")
  public @ResponseBody
            Collection<Settlement> getSettlements
            (@RequestParam(value = "startDate") String startDate,
            @RequestParam(value = "endDate") String endDate,
            @RequestParam(value = "merchantIds", defaultValue = "null") String merchantIds)
Run Code Online (Sandbox Code Playgroud)

如何在defaultValue中提供今天的日期?它只需要不变.

spring spring-mvc

6
推荐指数
3
解决办法
6537
查看次数

标签 统计

spring ×1

spring-mvc ×1