Jersey w/ Spring 3.0?

前端 未结 2 602
谎友^
谎友^ 2021-01-12 14:45

I see some are using Jersey w/ Spring. With Spring 3.0 there are now annotations available to make RESTful APIs directly in a controller. Why should I consider using Jersey

相关标签:
2条回答
  • 2021-01-12 15:35

    Spring 3 is backwards compatible so you can use Jersey.

    What you get is not tying your application to a propietary API.

    0 讨论(0)
  • 2021-01-12 15:47

    Jersey pros:

    • comes with specifications JSR 311
    • reference implementation for JSR 311
    • Restlet and RESTeasy are other implementations for JSR 311
    • better tooling (at least on Netbeans)
    • it is integrated with Spring and Guice

    EDIT

    A (very nice) Comparison of Spring MVC and JAX-RS

    0 讨论(0)
提交回复
热议问题