Spring Implements RESTful

Source: Internet
Author: User

Today with a senior colleague to discuss the restful, I rookie, to colleagues asked a question-what is the difference between a restful and a servlet? Colleagues think twice and do not clearly describe their differences.

Google after the fact, suddenly feel that their problems to mention how stupid.

1. RESTful is not a technology, nor a standard, but a style that is not comparable to a servlet at all. A servlet-based application can also be a restful style, in other words, restful can be achieved through a servlet.

2. Through the REST-style architecture, requests and responses are built on the transport of resource representations. Resources are identified by the global ID, which typically uses a Uniform Resource Identifier (URI). The client app uses an HTTP method (such as GET, POST, PUT, or DELETE) to manipulate one or more resources. Typically, get is used to get or list one or more resources, POST is used to create, PUT is used for updates or replacements, and delete is used to delete resources.

Some information, first collection, slowly study:

About RESTful: http://www.ruanyifeng.com/blog/2011/09/restful.html

RESTful HTTP Practice: http://www.infoq.com/cn/articles/designing-restful-http-apps-roth/

Implementing restful:http://www.ibm.com/developerworks/cn/web/wa-spring3webserv/with Spring 3

Spring Implements RESTful

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.