1

I want to use REST in Spring without using MVC framework, but it seems they encourage using it with controllers only!

Can I do so without using controllers ?? Is it advisable ?

3
  • I am looking for a Spring framework solution only. Don't want to use Jersey, restlet, reateasy etc. Commented May 16, 2012 at 13:48
  • Have you considered using Spring Data also? Commented May 16, 2012 at 13:52
  • @EllyGayle: What's wrong with using "controllers only"? It's a Spring-only solution like you want, and does the job. What's the problem? Commented May 16, 2012 at 14:12

2 Answers 2

2

You can create Rest services without spring-mvc using Jersey.

official : http://jersey.java.net/

examples: http://www.vogella.com/articles/REST/article.html

Jersey w/ Spring 3.0?

Sign up to request clarification or add additional context in comments.

Comments

0

You can use JAX-RS in concert with Spring if you like, if you want to avoid using Spring for web-layer stuff.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.