How can I configure Jackson using micronaut to output dates as yyyy-MM-dd'T'HH:mm:ss.SSSZ date format? I tried something like this:
@JacksonFeatures(
enabledSerializationFeatures = {},
disabledSerializationFeatures = {SerializationFeature.WRITE_DATES_AS_TIMESTAMPS},
enabledDeserializationFeatures = {}
)
public class Application {
public static void main(String[] args) {
Micronaut.run(Application.class);
}
}
@akozel This should work. The docs are missing a bunch of the features around configuration. I'll work on adding them.
jackson:
serialization:
writeDatesAsTimestamps: false
This works for me. thank you.
Most helpful comment
@akozel This should work. The docs are missing a bunch of the features around configuration. I'll work on adding them.