问题描述
有没有人设法使用杰克逊2.0和泽西岛1.12。知道这将是非常有趣的。我们必须在整个地方使用杰克逊1.9.x,因为球衣有杰克逊如此强烈耦合。从我所看到的甚至球衣2.0M3仍然使用杰克逊1.9.2。因此,似乎没有必要等待球衣团队在不久的将来这样做。
Has anybody managed to use jackson 2.0 with Jersey 1.12. It will be very interesting to know. We have to use jackson 1.9.x all over the place, just because jersey has jackson so strongly coupled. From what I see even jersey 2.0M3 is still using jackson 1.9.2. So it seems there is no point to wait for jersey team to do it in near future.
推荐答案
自定义提供商的工作;和官方杰克逊2.0 也是如此,具有更多功能(能够使用 @JsonView
注释以及其他一些关于资源方法的注释)。
Custom provider works; and "official" Jackson 2.0 JSON provider project does the same, with bit more features (ability to use @JsonView
annotation and a few others on resource methods).
这是一件好事使用JAX-RS:一切都是模块化的,添加新的改进的提供商非常容易。
This is one of nice things with JAX-RS: everything is modular, and adding new improved providers is very easy.
这篇关于杰克逊2.0与泽西岛1.12的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!