-
Notifications
You must be signed in to change notification settings - Fork 472
Adding new HttpMessageConverters does not work #654
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
Right now, Spring HATEOAS has a static-based configuration that has a BIG side effect of making dynamic updates like this tricky. The linked PR is a solution, but possibly not the best one. We're looking at tackling this in the new 1.0 branch in a more fluid, Spring fashion. |
@gregturn Which linked PR are you talking about? Thank you, for the answer. |
Sorry, left out #618 |
I couldn't solve my problem with the PR. I found a stackoverflow answer, what solved the problem. This should be better handled from spring-hateoas.... My code:
|
The issue with using It's an issue @olivergierke and I are looking into for a better developer experience. |
Is there any update on this? I'm currently having to use strings for my endpoints as I'm using value objects for all my ID path variables. Just wondering if there is a plan? |
As we await the review of #728, have an work-in-progress that uses the newly built infrastructure to make it super simple to register your own media types. |
Superseded by #833 |
I'm developing a HAL-based REST API with spring-boot and spring-hateoas. I have a bean in my configuration class, which adds a new

ByteArrayHttpMessageConverter
, because my Controller returns aByteArrayResource
. When i debug the application and end up in theAbstractMessageConverterMethodProcessor
class, i can't see myByteArrayHttpMessageConverter
in themessageConverters
list.My config file looks like this:
The text was updated successfully, but these errors were encountered: