官术网_书友最值得收藏!

The Spring Framework and REST

It is assumed that the reader is familiar with the Spring Framework (referred to as Spring from here on). We will therefore focus on the specificities of building RESTful web services with Spring, in this section.

Since REST hinges on URIs, the Spring Web MVC framework provides all the necessary tools for building RESTful endpoints. Annotations, such as org.springframework.web.bind.annotation.RequestMapping and org.springframework.web.bind.annotation.RequestParam for mapping URLs and parameters form the basis for creating such endpoints. Chapter 3, The First Endpoint, will discuss these annotations and offer code samples to illustrate their use.

Note

Reference documentation about the Spring Web MVC can be found at http://docs.spring.io/spring/docs/current/spring-framework-reference/html/mvc.html.

With the technological context laid out, let's now look at one such RESTful service. Throughout this book, we will be building a sample web service that helps manage hotels and B&Bs.

主站蜘蛛池模板: 镇坪县| 忻州市| 梁平县| 阿克陶县| 柘城县| 黄山市| 黄大仙区| 长沙县| 武城县| 甘洛县| 金乡县| 广昌县| 高淳县| 汝阳县| 河北省| 云阳县| 武强县| 富裕县| 平乐县| 通许县| 南通市| 井研县| 塘沽区| 彩票| 巴里| 彭阳县| 象州县| 焉耆| 和政县| 精河县| 中卫市| 湄潭县| 神池县| 兴宁市| 萝北县| 文水县| 黔东| 皮山县| 台中县| 嘉鱼县| 邮箱|