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 ?

skaffman
  • 398,947
  • 96
  • 818
  • 769
Elly Gayle
  • 67
  • 1
  • 6

2 Answers2

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?

Community
  • 1
  • 1
Arnaud Gourlay
  • 4,646
  • 1
  • 29
  • 35
0

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

matt b
  • 138,234
  • 66
  • 282
  • 345