jackson date format code example
Example 1: java spring boot json deserialize date inaccurate
@JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss", timezone = "Europe/Madrid")
Example 2: deserialize date java
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")