时间转换异常
log信息如下:
[WARN ] 2017-09-27 07:59:05.539 org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver.logException<189> - Resolved exception caused by Handler execution: org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 2 errors
Field error in object 'notice' on field 'downlineTime': rejected value [2017-09-27 07:58:53]; codes [typeMismatch.notice.downlineTime,typeMismatch.downlineTime,typeMismatch.java.util.Date,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [notice.downlineTime,downlineTime]; arguments []; default message [downlineTime]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'java.util.Date' for property 'downlineTime'; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type [java.lang.String] to type [@com.fasterxml.jackson.annotation.JsonFormat java.util.Date] for value '2017-09-27 07:58:53'; nested exception is java.lang.IllegalArgumentException]
Field error in object 'notice' on field 'uplineTime': rejected value [2017-09-27 07:58:50]; codes [typeMismatch.notice.uplineTime,typeMismatch.uplineTime,typeMismatch.java.util.Date,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [notice.uplineTime,uplineTime]; arguments []; default message [uplineTime]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'java.util.Date' for property 'uplineTime'; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type [java.lang.String] to type [@com.fasterxml.jackson.annotation.JsonFormat java.util.Date] for value '2017-09-27 07:58:50'; nested exception is java.lang.IllegalArgumentException]