Field error in object 'tblHouse' on field 'houseTime': rejected value [2018-01-11]; codes [typeMismatch.tblHouse.houseTime,typeMismatch.houseTime,typeMismatch.java.util.Date,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [tblHouse.houseTime,houseTime]; arguments []; default message [houseTime]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'java.util.Date' for property 'houseTime'; 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 '2018-01-11'; nested exception is java.lang.IllegalArgumentException]
2018-01-31
哦? 你這個(gè)是houseTime的類型寫錯(cuò)了, 要使用java.sql.Date, 你現(xiàn)在應(yīng)該是java.util.Date.?
這個(gè)錯(cuò)誤在SpringMVC里很常見
2018-01-31
把后臺(tái)的錯(cuò)誤日志打出來唄 ?( ̄▽ ̄)"
2018-04-28
加上@DateTimeFormat(pattern = "yyyy-MM-dd")可以解決問題
2018-04-28
實(shí)際開發(fā)中,id肯定設(shè)置為int,自增
2018-04-28
id字段設(shè)置的是varchar,怎么實(shí)現(xiàn)的自增,很好奇
2018-04-28
guns開源項(xiàng)目代碼生成,實(shí)體類中是java.util.Date,改成java.sql.Date即可
2018-04-27
老師你好 我也遇到了這個(gè)問題 但是沒有找到dao類 請(qǐng)問在那個(gè)文件中呢
2018-02-01
666666666
2018-01-31
2018-01-31 11:06:11.370 ?WARN 4748 --- [nio-8080-exec-3] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved exception caused by Handler execution: org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 1 errors
Field error in object 'tblHouse' on field 'houseTime': rejected value [2018-01-11]; codes [typeMismatch.tblHouse.houseTime,typeMismatch.houseTime,typeMismatch.java.util.Date,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [tblHouse.houseTime,houseTime]; arguments []; default message [houseTime]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'java.util.Date' for property 'houseTime'; 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 '2018-01-11'; nested exception is java.lang.IllegalArgumentException]
2018-01-31
?Field?error?in?object?'tblHouse'?on?field?'houseTime':?rejected?value?[2018-01-10];?codes?[typeMismatch.tblHouse.houseTime,typeMismatch.houseTime,typeMismatch.java.util.Date,typeMismatch];?arguments?[org.springframework.context.support.DefaultMessageSourceResolvable:?codes?[tblHouse.houseTime,houseTime];?arguments?[];?default?message?[houseTime]];?default?message?[Failed?to?convert?property?value?of?type?'java.lang.String'?to?required?type?'java.util.Date'?for?property?'houseTime';?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?'2018-01-10';?nested?exception?is?java.lang.IllegalArgumentException]