ninjaframework / ninja

Ninja is a full stack web framework for Java. Rock solid, fast and super productive.
http://www.ninjaframework.org
Apache License 2.0
1.91k stars 521 forks source link

Add new Jackson modules to handle Java8 and Joda data types #723

Closed thibaultmeyer closed 2 years ago

thibaultmeyer commented 2 years ago

Jackson does not natively support Java8 (ie: LocalDate / LocalDateTime) and Joda data types. Some Modules have to be activated.

12:00:28.655 [qtp1052195003-46] ERROR ninja.template.TemplateEngineJson - Error while rendering json
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Java 8 date/time type `java.time.LocalDateTime` not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling (through reference chain: java.util.ArrayList[0]->entity.ReferenceCollection["createdAt"])