-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
Joda DateTime serialization fails when Accept header is set to application/xml #38965
Comments
Can you replicate this problem with a supported version of Spring Boot? The 2.7.x generation is out of open source support, see https://spring.io/projects/spring-boot/#support |
@bclozel The attached demo project uses version 3.0.9.Pleae have a look.There is no issue with 2.7.x ,it works there |
Spring Framework's support for Joda Time has been deprecated since 5.3 and was removed in 6.0 in favor of the To avoid the problem, I would recommend switching from Joda Time to the standard |
Is there any guidance on how we migrate from Joda time to java time, when dependent upstream service is still expecting payload to have joda time fields? |
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Joda date/time type org.joda.time.DateTime not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-joda" to enable handling
This error is encountered even with jackson-datatype-joda dependency added and JodaTime module registered, only when Accept header of the request is application/xml. Looks like this issue is present in springboot versions higher that 2.7.18.
Adding a sample application with test case
demo.zip
The text was updated successfully, but these errors were encountered: