Elly Gayle
Elly Gayle

Reputation: 67

Use REST in Spring without MVC

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

Answers (2)

Arnaud Gourlay
Arnaud Gourlay

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

Jersey w/ Spring 3.0?

Upvotes: 2

matt b
matt b

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

Related Questions