how to create restful web services using spring 3.0?

11,534

Solution 1

I think it's better to start from scratch. Just create a project in your IDE and add the jars and configurations step by step. It's not easy to read hundreds of lines of XML written by others from the start, at least for me.

Here is a very simple tutorial, hope it helps.

Solution 2

I know i am late by 6 months. By now you would have become a master at Web Services with Spring. But i recently was trying to learn this and this example helped me a lot. http://software.sawano.se/2012/03/combining-json-and-xml-in-restful-web.html

This example is very simple and does not have lots of Dependencies. Just need to install Maven, and Eclipse and a Server. hopefully it will be of use to someone else in the future. Thanks.

Solution 3

The best spring rest tutorial that I came across are these two:

Also you can download the code from git by using this command (you need to install git it first of course)

git clone https://code.google.com/p/bti360/

Here is another good tutorial and you can download the code similar to previous tutorial and run it in your STS or eclipse.

I have tested these two on my localhost and they both work well. For the second link you need to install Gradle to make your build process easy and painless.

Share:
11,534
user811433
Author by

user811433

Updated on June 15, 2022

Comments

  • user811433
    user811433 almost 2 years

    I searched for several approaches to create restful web services and finally narrowed my current requirement to learn how to create restful web services using spring.

    I am new to both spring and restful services design. Tried googling for several hours to get one good post which can help me learn this technology.

    can some one point me to a good tutorial which explains how to create restful web services using spring?

    All tutorials I came across use POM.XML. Do I really need to use maven to create a restful web service? I am confused. Please help.