dapr / java-sdk

Dapr SDK for Java
Apache License 2.0
259 stars 206 forks source link

Java 8 date/time type `java.time.ZonedDateTime` not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling #995

Open Qoooooooooooo opened 8 months ago

Qoooooooooooo commented 8 months ago

version 1.10.0 When use daprClient.invokeMethod and the dto includes ZonedDateTime、LocalDateTime. error: Java 8 date/time type java.time.ZonedDateTime not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling

Qoooooooooooo commented 8 months ago

how to enable jackson-datatype-jsr310 in dapr

artursouza commented 8 months ago

The fix might be to simply add the dependency directly on your app's pom.xml. We need someone to repro this and verify it is enough.

Qoooooooooooo commented 7 months ago

This issue still exists after adding dependencies to pom.xml

artursouza commented 7 months ago

OK. I accept a PR fixing this.

BrayanMnz commented 5 months ago

Do we have a sample project to replicate this? @Qoooooooooooo @artursouza

Shubhdeep02 commented 3 months ago

Hey @artursouza is it still considered as good-first-issue?

mcruzdev commented 3 months ago

I opened a draft pull request but must test it correctly