springboot jdbc查询使用LocalDate报:Failed to convert value of type ‘java.lang.String’ to required type ‘java.time.LocalDate’;

解决办法:

添加该注解即可通过日期查找记录:

@DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
Failed to convert value of type ‘java.lang.String‘ to required type ‘java.time.LocalDate‘(亲测可用)Failed to convert value of type ‘java.lang.String‘ to required type ‘java.time.LocalDate‘(亲测可用)

 

相关文章: