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';

 

 

相关文章:

  • 2022-12-23
  • 2021-11-19
  • 2021-12-13
  • 2022-12-23
  • 2021-10-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-04-18
  • 2022-12-23
  • 2022-12-23
  • 2021-05-16
  • 2022-12-23
  • 2021-08-26
相关资源
相似解决方案