Skip to content
Maven Spring Rest example
Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.settings
src/com/journaldev/spring Initial commit with Increased functionality: Sep 9, 2015
webapp Initial commit with Increased functionality: Sep 9, 2015
.classpath
.gitignore Initial commit with Increased functionality: Sep 9, 2015
.project
README.md
pom.xml Initial commit with Increased functionality: Sep 9, 2015

README.md

spring-rest-example

This is a simple example on how to create and consume a REST service in a Java Spring environment. Import this as a Maven project, run in a Servlet Container like Tomcat(TM) or an Application Server of your choice.

When opening the starting page: http://localhost:9090/spring-rest-example/

...you will be presented with a response from a dummy rest service. To run the other services go to the TestSpringRestExample.java right-click with mouse button and run it as a java application. Just be sure that the application is already running in your Tomcat before doing this last step.

For more information look at the following page: http://www.journaldev.com/2552/spring-restful-web-service-example-with-json-jackson-and-client-program

This example was taken from this previous link, and all the credits shloud go to Pankaj Kumar and www.journaldev.com (TM).

Regards,

MS

You can’t perform that action at this time.