报错如下:
Failed to convert value of type 'java.lang.String' to required type 'java.util.Date'; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type [java.lang.String] to type [java.util.Date] for value '2020-03-23 00:00:00'; nested exception is java.lang.IllegalArgumentException.
我传值是:2020-03-23 00:00:00。
这个并不是能够解析为java.util.Date的日期格式。
正确的应当是:
Mon Mar 23 11:04:12 CST 2020
那么它是一种什么样的日期格式,应该怎么称呼它呢?
RFC-2822标准格式。
感谢文章: