-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Compatibility with Spring HATEOAS 0.19.0.RELEASE #3882
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
HalHandlerInstantiator
in favour of customisation applied by Jackson2ModuleRegisteringBeanPostProcessor
Spring HATEOAS already decorates ObjectMappers via @EnableHypermediaSupport. Remove the extra bits of configuration that are unnecessary and introduce tight coupling with internal APIs to that project. As a side effect, no longer need the HateoasProperties. Resolves gh-3882
Spring HATEOAS already properly decorates ObjectMappers with @EnableHypermediaSupport. This removes unnecessary calls and decouples Boot from internal Spring HATEOAS APIs at the same time. Resolves gh-3882
@olivergierke described
As far as I can tell, that's not what happens in the The above means that the work done by |
Spring HATEOAS already properly decorates ObjectMappers with @EnableHypermediaSupport. This removes unnecessary calls and decouples Boot from internal Spring HATEOAS APIs at the same time. Resolves gh-3882
I tweaked the order of things and pushed it to a branch at https://github.com/gregturn/spring-boot/tree/gh-3882. mvn clean install passed all the tests, so if there is some lingering issue, its not trapped by the tests. |
Unless I missed it, that branch doesn't contain the ordering change. Also, as I explained on Slack, I don't think it's a good solution:
|
I fixed the branch (had accidentally pushed the mod to spring-projects again), but feel free to shoot the patch or drop it all together. |
@olivergierke and I have discussed this. We came to the conclusion that there's nothing that we should do in Spring Boot 1.2.x. I have opened #3891 to improve things in 1.3 where we can make the broader changes that I think may be necessary. Users of Spring Boot 1.2.x and Spring Data REST that want to use Spring Data Gosling can safely do so if they also upgrade Spring HATEOAS to 0.19.0.RELEASE. This is because the auto-configuration of Spring Data REST switches off the auto-configuration for Spring HATEOAS that's incompatible with Spring HATEOAS 0.19.0.RELEASE Users of Spring Boot 1.2.x that want to use Spring HATEOAS on its own should stick with the version that's provided by Spring Boot's dependency management. |
Investigate removing direct use of
HalHandlerInstantiator
in favour of customisation applied byJackson2ModuleRegisteringBeanPostProcessor
The text was updated successfully, but these errors were encountered: