Migration to version 4 #10822
Unanswered
marcosflobo
asked this question in
Q&A
Replies: 2 comments
-
Please create an issue for the first case. I think we can support it. WDYT @yawkat ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Case 2: Considering the Jackson serializers depend on the Databind we cannot support it, the solution is to use Case 3: Please provide an example of this case. Do you code block? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello team,
Our team found some situations that we believe require some investigations. Hope we can find help here.
Now, let me share some use cases and the solutions/workarounds we found.
Use case 1: A project dependency has a DTO that requires arbitrary parsing
The following DTO comes from a library dependency.
The solution we found: add a mixin
Use case 2: custom jackson serializers need to be rewritten using the Micronaut 4 custom serializer
@JsonSerialize using member is not supported yet. So there is no other way than rewrite the serializer
Solution
Just rewrite the custom serializers. The API from Micronaut is quite similar to the Jackson API therefore the rewrite is straightforward
Use case 3: Blocking calls are detected in the event loop and crashes the request
This exception message is thrown by one of our clients that doesn't return reactive constructs
Solution
Apply https://docs.micronaut.io/latest/guide/index.html#atBlocking
Environment Information
Micronaut Version
4.3.7
Beta Was this translation helpful? Give feedback.
All reactions