JDK8 实体类有 LocalDate
类型的字段时报错:NoSuchMethodError: java.time.LocalDate.ofInstant(Ljava/time/Instant;Ljava/time/ZoneId;)
#43
Labels
解决方法:
方法一:
使用
java.sql.Date
类型替代LocalDate
。方法二:
添加一个自定义的转换器,继承
DateFieldConvertor
,注册为 Spring 的 Bean:The text was updated successfully, but these errors were encountered: