报错信息
2021-03-31 09:54:22.383 [http-nio-8103-exec-11] WARN o.s.w.s.m.s.DefaultHandlerExceptionResolver - Resolved [org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 2 errors
Field error in object ‘userParam’ on field ‘endTime’: rejected value [2021-03-30T16:00:00.000Z]; codes [typeMismatch.userParam.endTime,typeMismatch.endTime,typeMismatch.java.util.Date,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [userParam.endTime,endTime]; arguments []; default message [endTime]]; default message [Failed to convert property value of type ‘java.lang.String’ to required type ‘java.util.Date’ for property ‘endTime’; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type [java.lang.String] to type [@io.swagger.annotations.ApiModelProperty java.util.Date] for value ‘2021-03-30T16:00:00.000Z’; nested exception is java.lang.IllegalArgumentException]
Field error in object ‘userParam’ on field ‘startTime’: rejected value [2021-03-29T16:00:00.000Z]; codes [typeMismatch.userParam.startTime,typeMismatch.startTime,typeMismatch.java.util.Date,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [userParam.startTime,s