You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
I have the same problem as in #288, and I wrote my own serializer to replace Jackson2HalModule.HalLinkListSerializer. But how to tell spring to use this serializer? I tried to write
public abstract class MyOwnResourceSupportMixIn extends ResourceSupport {
@Override
@XmlElement(name = "link")
@JsonProperty("_links")
@JsonSerialize(include = JsonSerialize.Inclusion.NON_EMPTY, using = MyOwnSerializer.class)
}
and set
public class MixInModule extends SimpleModule {
public MixInModule() {
setMixInAnnotation(ResourceSupport.class, MyOwnResourceSupportMixIn.class);
and register this MixInModule in spring configuration, but it leads to stackoverflow error.
I see the mention of HalHandlerInstantiator in one of the issues, maybe I should use this method. But can you give me some example of how to use it in spring?
The text was updated successfully, but these errors were encountered:
Cool! Seems to be along similar lines as my solution. I'll add it to SO. I noticed that the main difference is that I didn't extend the module; just the instantiator.
Hello!
I have the same problem as in #288, and I wrote my own serializer to replace Jackson2HalModule.HalLinkListSerializer. But how to tell spring to use this serializer? I tried to write
and set
and register this MixInModule in spring configuration, but it leads to stackoverflow error.
I see the mention of HalHandlerInstantiator in one of the issues, maybe I should use this method. But can you give me some example of how to use it in spring?
The text was updated successfully, but these errors were encountered: