源码之家

  • 首页
  • 文章
  • 问答
  • 下载
您的位置: 首页  >  文章  >  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‘(亲测可用)

分类: 文章 • 2023-03-22 16:17:24

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‘(亲测可用)

 

相关推荐

  • Failed to convert property value of type 'java.lang.String' to required type 'int' for property
  • Failed to convert value of type ‘java.lang.String‘ to required type ‘java.time.LocalDate‘(亲测可用)
  • 关于springMVC中:Failed to convert property value of type 'java.lang.String' to required type '
  • 解决Swagger2 "Failed to convert value of type 'java.lang.String' to required type 'java.lang报错
  • Android 三大图片加载框架的对比——ImageLoader,Picasso,Glide
  • TypeError: Image data of dtype object cannot be converted to float 错误解决
    网站免责声明 网站地图 最新文章 用户隐私 版权申明
本站所有数据收集于网络,如果侵犯到您的权益,请联系网站进行下架处理。   

Copyright © 2018-2021   Powered By 源码之家    备案号:   粤ICP备20058927号