“Error de análisis de JSON: no se puede deserializar el valor del tipo `java.time.localdate` de la cadena” Código de respuesta

Error de análisis de JSON: no se puede deserializar el valor del tipo `java.time.localdate` de la cadena

//There are milliseconds in the input string, so your format should be 
//“yyyy-MM-dd’T’HH:mm:ss.SSS”
//Update: If the millisecond part consists of 1, 2, 3 digits or is optional, 
//you may use the following format:


@JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss[.SSS][.SS][.S]")
private LocalDateTime updatedTime;
Heisenberg

Error de análisis de JSON: no se puede deserializar el valor del tipo `java.time.localdateTime` de la cadena

@JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss[.SSS][.SS][.S]")
private LocalDateTime updatedTime;
Ben mahmoud Nour

Error de análisis de JSON: no se puede deserializar el valor del tipo `java.util.date` de la cadena

// Can you please post the string you are trying to serialize? 
// If you have Date Format string, you might want to check if the expected long/short format
// of the input alings with the Date Format string
CompSciGeek

Respuestas similares a “Error de análisis de JSON: no se puede deserializar el valor del tipo `java.time.localdate` de la cadena”

Preguntas similares a “Error de análisis de JSON: no se puede deserializar el valor del tipo `java.time.localdate` de la cadena”

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código