Solved

Rest using Spring java project

Posted on 2014-03-24
1
486 Views
Last Modified: 2014-04-08
Hi,
Using spring mvc, I know that to implement rest services.
Just want to know, is it possible to do that using java project using spring (jar project)?

Thanks for suggestion, reply.
-/Manish
0
Comment
Question by:Manish
1 Comment
 
LVL 35

Accepted Solution

by:
mccarl earned 500 total points
ID: 39951781
REST services in Spring are built upon Spring MVC so there is no real way of getting around that.

However, Spring MVC does not necessarily mean that you are developing a "web application" as such. What you can do is to have your application start an embedded servlet container and http server (such as Jetty) and you can connect Spring MVC to that, in a very similar way to a typical web application. Then, the whole thing can be packaged into a normal .jar file and run as a standard Java application.

If this sounds like it could be a solution for you, and you need more information, just let me know!
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
topping2 challenge 13 80
java. non-English characters encoding problem. intellij idea 3 73
thymeleaf natural templating vs JSP 2 65
servlet example issue 6 27
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now