Upgrading to Jackson 2.0 from 1.9 in Jersey not working

前端 未结 4 1067
佛祖请我去吃肉
佛祖请我去吃肉 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

    I would double-check if you don't have both versions of Jackson in your classpath. The package names in Jackson 2.x got changed to com.fasterxml from org.codehaus. This way you don't have some cryptic classpath problem (like a NoClassDefFound), but if you don't use the proper packages this is the kind of behavior that you'll see.

    Also, the annotations were extracted into their own project, jackson-annotations.

提交回复
热议问题