- Building a RESTful Web Service with Spring
- Ludovic Dewailly
- 139字
- 2021-07-09 21:44:51
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.
- Visual FoxPro程序設計教程(第3版)
- Python程序設計(第3版)
- Mastering matplotlib
- Oracle數據庫從入門到運維實戰
- Windows Forensics Cookbook
- 編程菜鳥學Python數據分析
- Advanced Express Web Application Development
- 詳解MATLAB圖形繪制技術
- PHP與MySQL權威指南
- 從0到1:HTML5 Canvas動畫開發
- Python預測分析實戰
- Python滲透測試編程技術:方法與實踐(第2版)
- OpenStack Sahara Essentials
- Java語言GUI程序設計
- Instant SQL Server Analysis Services 2012 Cube Security