-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new module for deserialization in the @Filter annotation #327
Comments
Hi @sondavide, Spring Filter simply autowires the present ObjectMapper bean, without making any configuration to it. You may customize that behavior as it may be done in any Spring project, see this for example. |
Hi @torshid , thanks for the help.
it works and finds the correct datas, if I use the @filter annotation, something does not work |
finally I used a custom converter:
$dateFromString saved me |
Thanks for sharing the solution! |
Hi, I'm using the last release 3.1.5:
com.turkraft.springfilter mongo 3.1.5There is a way to register a new or custom module in the ObjectMapper deserializers?
If I have a class with a field of type Instant, this error comes out:
"Query: { "$expr" : { "$gte" : ["$instant", "[ERROR: (com.fasterxml.jackson.databind.exc.InvalidDefinitionException) Java 8 date/time type
java.time.Instant
not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling]"]}}, Fields: {}, Sort: {}"There's a way to add jackson-datatypee-jsr310?
The text was updated successfully, but these errors were encountered: