字段有日期類型的,輸入2018-8-8插入不進(jìn)去
Field error in object 'customer' on field 'buyDate': rejected value []; codes [typeMismatch.customer.buyDate,typeMismatch.buyDate,typeMismatch.java.util.Date,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [customer.buyDate,buyDate]; arguments []; default message [buyDate]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'java.util.Date' for property 'buyDate'; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type [java.lang.String] to type [@com.baomidou.mybatisplus.annotations.TableField java.util.Date] for value ''; nested exception is java.lang.IllegalArgumentException]
2018-02-26
樓上回答是對的, 建議還是使用課上用的日期控件,手書很麻煩
2018-02-26
輸入不全,要包括時分秒。
輸入的格式也可能不對,月份與日期都要兩位數(shù)字,一位用0補全