Programmer DD
Mar 13, 2018 · Backend Development
Why Feign Fails with LocalDate/LocalDateTime and How to Fix It
When a Spring Cloud Feign client sends a request containing Java 8 date/time types like LocalDate, LocalTime, or LocalDateTime, the response may trigger JSON parse errors because Spring MVC serializes them as arrays, but Feign expects a proper object, which can be resolved by adding Jackson's JSR‑310 module and configuring the ObjectMapper.
JSONJacksonJavaTimeModule
0 likes · 6 min read
