How to format date with Locale using Jackson and Spring Boot

I have a Spring Boot application that sends GET messages to another serivce and receives a JSON in which one of its fields looks like this: 2014-11-07T22:01:45Z

How do I format this date with the query Locale

? The method I'm using is below:

ResponseEntity<Repository> response = restTemplate.exchange(repoUrlBuilder(owner, repository_name), HttpMethod.GET, entity, Repository.class);

      

The repository date field looks like this:

@JsonProperty(value="created_at")
Date createdAt;

      

Static defined format in annotation is JsonProperty

not a solution.

+3


source to share





All Articles