Caused by: com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.util.Date` from String "2025-02-13": expduling["taskStartTime"])

 

Caused by: com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.util.Date` from String "2025-02-13": expected format "yyyy-MM-dd HH:mm:ss" at [Source: (org.springframework.util.StreamUtils$NonClosingInputStream); line: 1, column: 231] (through reference chain: com.sinsta.web.controller.scheduling.domain.SstStaffScheduling["taskStartTime"])

后端 这个报错 有以下几点(前端 就看看传的时间格式 跟后端对不对得上)

第一:   实体类这边时间格式

 第二 就是 新增接口 if 里面的判断 看看有没有 != ‘’

 

posted @ 2025-02-13 13:08  秃头少女and战战  阅读(571)  评论(0)    收藏  举报