If issue is in the mock mvc tests, then just register module to object mapper... ObjectMapper o = new ObjectMapper(); o.registerModule(new JavaTimeModule());
If issue is in the mock mvc tests, then just register module to object mapper... ObjectMapper o = new ObjectMapper(); o.registerModule(new JavaTimeModule());