Reputation: 67
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 ?
Upvotes: 1
Views: 5584
Reputation: 4666
You can create Rest services without spring-mvc using Jersey.
official : http://jersey.java.net/
examples: http://www.vogella.com/articles/REST/article.html
Upvotes: 2
Reputation: 139921
You can use JAX-RS in concert with Spring if you like, if you want to avoid using Spring for web-layer stuff.
Upvotes: 0