Upgrading to Jackson 2.0 from 1.9 in Jersey not working

前端 未结 4 1070
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-05 08:09

I\'m using Jackson (in Jersey) to serialize entities, and I\'m migrating from Jackson 1.9 to 2.0. I followed this guide, and at first it seemed like everything worked out ea

4条回答
  •  悲&欢浪女
    2021-01-05 08:41

    It is not enough to simply upgrade Jackson core and mapper versions; integration between Jersey (or any JAX-RS implementation) and Jackson happens using specific JAX-RS provider. For Jackson, this would be https://github.com/FasterXML/jackson-jaxrs-json-provider.

    So you also need to add 2.x Jackson JAX-RS JSON provider, and that will make Jersey use Jackson 2.x for its operation.

提交回复
热议问题