August 12

Almost any modern web application provides its data and functionality via a REST interface (usually in XML and / or JSON format).

Web frameworks (like Rails and Grails), which simplify the creation of such a REST interface, are enjoying great popularity among Web developers.
Since at least Grails web framework in the background on the Spring touches can also developers who use Grails may or may not want to integrate Spring with this functionality in their application.

Is a concrete example with accompanying tutorial of it StSMedia . The basic REST integration in Part 2 explains in more detail. The implementation of the ContentNegotiation, that the extradition request because of the different formats (in the Accept header, or by extension of the URL to the appropriate file extension) then it is in Part 7 .

The complete source code of the Spring Finance Manager application on Google Code hosted and is available there for download. The version 0.5 is based on still jumping 3 M4, I was able to use the REST functionality implemented there but also problems with Spring 3.0.2.

Links:
REST in Spring Article Source Blog

gklinkmann written by \ \ tags: ,

Add a comment

Yes, I would like to be notified about comments!