Building a RESTful Web Service
来源:互联网 发布:网络购物平台有哪些 编辑:程序博客网 时间:2024/05/18 16:57
建一个RESTFul web service 服务.
1 IDE: IntelliJ IDEA;
2 项目为Maven项目.
---------目标----------------
What you’ll build
You’ll build a service that will accept HTTP GET requests at:
http://localhost:8080/greeting
and respond with a JSON representation of a greeting:
{"id":1,"content":"Hello, World!"}
You can customize the greeting with an optional name
parameter in the query string:
http://localhost:8080/greeting?name=User
The name
parameter value overrides the default value of "World" and is reflected in the response:
{"id":1,"content":"Hello, User!"}
Download and unzip the source repository for this guide, or clone it using Git: git clone https://github.com/spring-guides/gs-rest-service.git
With IntelliJ IDEA up and running, click Import Project on the Welcome Screen, or File | Open on the main menu:
选择 pom.xml
运行即可!
-------------------验证-----------------
浏览器中输入 上文提到的地址即可!
- Building a RESTful Web Service
- Building a RESTful Web Service
- Building a RESTful Web Service
- SpringBoot 之 Building a RESTful Web Service
- Spring Building a RESTful Web Service
- Spring Boot: Building a RESTful Web Service
- 教程学习 01-Building a RESTful Web Service 学习笔记
- 构建一个RESTful Web Service(Building a RESTful Web Service)
- 构建一个RESTful Web Service(Building a RESTful Web Service)
- How To Start An Spring Application-Building a RESTful Web Service
- Consuming a RESTful Web Service
- Build a Restful Web Service
- Consuming a RESTful Web Service
- Consuming a RESTful Web Service
- Consuming a RESTful Web Service with jQuery
- SpringBoot之Consuming a RESTful Web Service
- Building a JSON web service with Java and Axis2
- Building a JSON web service with Java and Axis2
- 为什么点击按钮不会触发onclick
- 剑指offer第15题(反转链表)
- 步进电机驱动芯片
- python 循环中显示进度条
- POJ1195(树状数组)
- Building a RESTful Web Service
- burpsuite爆破密码(含验证码)
- 编程练习总结
- 2017年TOP100summit开幕在即, 15位大咖担任联席主席甄选最值得学习的100个研发案例
- 287. Find the Duplicate Number
- DiyCode社区客户端
- 7-10 公路村村通(30 分)
- python爬虫之正则表达式
- 【4】vim高级功能入门