我尝试在Rest API spring java中将Long转换为日期,作为打击:
@RequestParam(value = "startDate", required = true) @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSZ")Date startDate
这是我的网址... / schedule?startDate = 1496011479000
我得到错误:
nested exception is java.lang.IllegalArgumentException: Invalid format: \"1496011479000\" is malformed at \"9000\""
出了什么问题?