@JsonCreator and mixin via Module not working for 3rd Party Class

时间秒杀一切 提交于 2019-12-01 10:45:36
Matt P.

I solved this issue, the problem was that I had defined the mixin as a non-static inner class inside of the class in which it was used. Moving it and the module to their own class definitions in their own package fixed this. One could alternatively mark the mixin inner classes as "static" to fix the issue.

Credit to Jackson Mixin not working for deserializing non-default constructor object wherein the author made a comment on the necessity of this while posting his own question.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!