How do I migrate from Jersey 1.0 to Jersey 2.0?

前端 未结 5 1401
旧时难觅i
旧时难觅i 2021-02-05 06:07

I\'m trying to upgrade to Jersey 2.0 and I\'m having a lot of trouble because the groupIds and artifactIds of Jersey have completely changed and I can\'t find a migration plan i

5条回答
  •  野的像风
    2021-02-05 06:57

    You don't.

    Jersey 2.0 is missing a lot of functionality from Jersey 1.0. Contrary to what the committers will tell you, some things are plain impossible to implement right now (e.g. Guice, Spring integration). Things appear to work on the surface, but once you dig in deeper you will find a lot of features are still broken.

    Many of the 1.x plugins do not exist in 2.x, mainly because of the aforementioned breakage.

    In light of this, I suggest a holding off on Jersey 2.x for the foreseeable future. Hopefully the committers will clean this up in the coming year.

提交回复
热议问题