I'm developing Java EE 8 app using JAX-RS.
I have LocalDateTime fields in my Entities.
When I return those entities from JAX-RS resource methods, I indicate desired formatting with @JsonbDateFormatannotation.
Is it possible to define my formatting somewhere once, so it's applied to all entities?
I'm developing Java EE 8 app using JAX-RS. I have LocalDateTime fields in my Entities. When I return those entities from JAX-RS resource methods, I indicate desired formatting with
@JsonbDateFormat
annotation. Is it possible to define my formatting somewhere once, so it's applied to all entities?