Failing tests with: InvalidDefinitionException: Java 8 date/time type `java.time.Instant` not supported by default

If issue is in the mock mvc tests, then just register module to object mapper…

ObjectMapper o = new ObjectMapper();
o.registerModule(new JavaTimeModule());