Spring mvs vs jax-rs rest

Any reason I should choose jax-rs (jersey) instead of Spring -mvc to implement the rest.

Spring comes with additional features besides rest, such as aop, security, ioc, etc. You get the whole spring form.

Any performance / feature flaws choosing spring (I suspect that).

+5
source share
1 answer

JAX-RS:

  • JSR standard
  • Can work without servlet container (grizzly, simple, ...)
  • Ready-made production implementations (knitwear, cxf, resteasy, restlet, ...)
  • intended for REST applications only

Spring MVC Benefits:

  • Provide a "full" stack, not just REST objects
  • Enabling Dependencies / AOP / Transactions
  • (JSP, freemarker, ,...)

, , spring .

+3

All Articles