日期存儲(chǔ)問(wèn)題
nested exception is org.apache.ibatis.reflection.ReflectionException: Could not set property 'createTime' of 'class com.zj.pojo.User1' with value 'Mon Aug 03 14:25:20 CST 2020' Cause: java.lang.IllegalArgumentException: argument type mismatch
我是用idea寫(xiě)的,在存儲(chǔ)日期的時(shí)候,提示了這個(gè)錯(cuò)誤。代碼也是按著你敲的。
2020-08-09
你的createTime是什么類(lèi)型的,還有是使用的lombok插件,還是自己寫(xiě)的get,set方法,也可能是沒(méi)有g(shù)et,set方法導(dǎo)致的。
2020-08-17
采用的是Date類(lèi)型,按你的那個(gè)類(lèi)型就沒(méi)有辦法實(shí)現(xiàn)。使用的lombok插件,沒(méi)有自己寫(xiě)。最近沒(méi)有看消息,回復(fù)遲了,抱歉。
2020-08-07
沒(méi)有g(shù)et ,set