-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Hateos HandlerInstantiator overrides Jackson's HandlerInstantiator #3979
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
Comments
@countrogue What version of Spring Boot are you using? @wilkinsona Does this sound like a duplicate of one of the existing Jackson issues you've already dealt with? |
@philwebb im using spring-boot v1.2.5.RELEASE |
@countrogue I'm struggling to reproduce this. Can you please put together a small sample that reproduces the problem? |
@wilkinsona Hi you can download the sample project from here. |
Thanks for the sample. It didn't appear to reproduce the problem, but it was sufficient for the penny to drop about what you're trying to do. Unfortunately, Jackson only allows an You could create and use your own In summary, this isn't a problem that's specific to Spring Boot and I think it needs to be addressed in Spring HATEOAS. Two possible solutions are:
Unfortunately, GitHub doesn't allow me to move this issue to another repository. You may want to open a Spring HATEOAS issue. This existing issue may also be of interest. It appears that others are already writing code that depends on |
Ok thanks @wilkinsona |
Im trying to autowire my JsonSerializer/JsonDeserializer.
It works with the global deserializer objectXDeserializerBean(above), but when deserializing specific fields like the following(below) it doesn't work:
The problem is that HypermediaAutoConfiguration is overriding the HandlerInstantiator in jackson2ObjectMapper so the only work around i can do right now is to set spring.hateoas.apply-to-primary-object-mapper=false. WIth that i was forced to abandon hateos in my responses. Can anyone help me with this?
The text was updated successfully, but these errors were encountered: