亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

字段有日期類型的,輸入2018-8-8插入不進去

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]


正在回答

2 回答

樓上回答是對的, 建議還是使用課上用的日期控件,手書很麻煩

0 回復 有任何疑惑可以回復我~
#1

11566

能不能做一個表單驗證和樹形下拉選擇。
2018-03-01 回復 有任何疑惑可以回復我~

輸入不全,要包括時分秒。

輸入的格式也可能不對,月份與日期都要兩位數字,一位用0補全

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

字段有日期類型的,輸入2018-8-8插入不進去

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號