Closed miladamery closed 2 years ago
First thing to make sure is that you have Java 8 date/time module registered with ObjectMapper
(module jackson-datatype-jsr310
): this way LocalDateTime
will be serialized as a String or integer (depending on configuration) -- but otherwise it would be only recognized as a weird POJO and that probably causes the issue.
Thanks. that solved the problem.
Hi. I'm trying to serialize to following class to protobuf using jackson dataformats
With following
And
But I get following error
The problem is LocalDateTime. when I put a field with this type this error happens when I remove it everything works fine. How can I solve this?