当前位置:   article > 正文

vue传日期对java后台,后台报错怎么办?JSON parse error: Cannot deserialize value of type `java.time.LocalDateTime` f

cannot deserialize value of type `java.time.localdatetime` from string "2024

报错信息

JSON parse error: Cannot deserialize value of type `java.time.LocalDateTime` from String "2024-05-30T16:00:00.000Z": Failed to deserialize java.time.LocalDateTime: (java.time.format.DateTimeParseException) Text '2024-05-30T16:00:00.000Z' could not be parsed at index 10; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDateTime` from String "2024-05-30T16:00:00.000Z": Failed to deserialize java.time.LocalDateTime: (java.time.format.DateTimeParseException) Text '2024-05-30T16:00:00.000Z' could not be parsed at index 10 at [Source: (org.springframework.util.StreamUtils$NonClosingInputStream); line: 1, column: 141] (through reference chain: com.metasoft.modules.system.entity.User["validityPeriod"])

如何解决呢?

  1. column: [ {
  2. label: '账号过期时间',
  3. prop: 'validityPeriod',
  4. type: 'date',
  5. format: 'YYYY-MM-DD HH:mm:ss',
  6. valueFormat: 'YYYY-MM-DD HH:mm:ss',
  7. span: 24,
  8. },

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/692541
推荐阅读
相关标签
  

闽ICP备14008679号