I confused with the difference between JAX-RS (well, maybe should use Jersey to do comparison since JAX-RS is just spec) and Spring for Restful serv
JAX-RS is the specification and jersey etc are are its implementation. People use Spring to make RestFul web Services as because spring along with restful implementation provides stuff like hibernate integration and also stuff like IOC and Aspect orientated programming .
Where as if we use jersey for our implementation the problem will be the data has to fetched from the back end using some ORM technologies and we will have to write boilerplate code for the same.
That is the reason people and even enterprises use spring as along with Rest implementation it provides Spring facilities too . And now using the latest Spring boot implementation we can start development very fast without lots of configurations.