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

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.

主站蜘蛛池模板: 石棉县| 通江县| 怀来县| 潼南县| 昭通市| 大同县| 临猗县| 澄迈县| 大石桥市| 加查县| 社旗县| 金溪县| 南陵县| 河曲县| 东方市| 牙克石市| 华池县| 灵宝市| 调兵山市| 金平| 南郑县| 萍乡市| 阿图什市| 治多县| 若尔盖县| 德清县| 北票市| 邹城市| 湖州市| 庆云县| 鄂州市| 黄冈市| 彭山县| 平泉县| 墨玉县| 北票市| 客服| 文化| 宣城市| 红安县| 阿拉善左旗|