Spring REST VS Jersey(JAX-RS implementation):
REST API creation
- Spring REST provides RESTFul implementation along with the ability to create a Web full stack development support.
- Whereas JAX-RS (Jersey, RESTEasy and Apache CXF implementation ) provide REST implementation only.
JAX-RS compliance
- Spring REST is not in compliance with JAX-RS.
- JAX-RS is a JSR Specification defining a Java API for RESTful Web Services.
-
Jersey, RESTEasy and
Apache CXF are the implementation of JAX-RS.
-
We can use Jersey
implementation if we go with JAX-RS compliance.
Server Migration
- JAX-RS ensures portability of REST API code across all Java EE compliant application servers.
- Spring REST we need to check whether we will have any issues in the server migration.