spring-boot(2) - RESTfull API简单项目的快速搭建
2017-03-21 00:00
435 查看
摘要: 本spring boot系列的文档,几乎全部是本人学习搭建的时候,对课程视频的文档归类,不是原创,记录下来只是方便以后用到可以查看.....
一、 搭建一个简单的RESTfull API接口项目
1. spring-boot-starter-web的引入,其依赖包的学习
2. spring-boot-devtools的引入,其依赖包的学习
3. 代码的实现
4. 运行项目
直接运行main方法或者使用maven命令: spring-boot:run
测试: http://localhost:8080/index
带参数:http://localhost:8080/index/get?name=wujing
带参数有中文:http://localhost:8080/index/get?name=无境
url测试:http://localhost:8080/index/get/1/wujing
url测试:http://localhost:8080/index/get/1/无境
5.打包
命令: clean package
运行命令: java –jar roncoo-education-0.0.1-SNAPSHOT.jar
小工具:http://www.roncoo.com/article/detail/124818
一、 搭建一个简单的RESTfull API接口项目
1. spring-boot-starter-web的引入,其依赖包的学习
2. spring-boot-devtools的引入,其依赖包的学习
3. 代码的实现
4. 运行项目
直接运行main方法或者使用maven命令: spring-boot:run
测试: http://localhost:8080/index
带参数:http://localhost:8080/index/get?name=wujing
带参数有中文:http://localhost:8080/index/get?name=无境
url测试:http://localhost:8080/index/get/1/wujing
url测试:http://localhost:8080/index/get/1/无境
5.打包
命令: clean package
运行命令: java –jar roncoo-education-0.0.1-SNAPSHOT.jar
小工具:http://www.roncoo.com/article/detail/124818
相关文章推荐
- 003,spring boot RESTfull API简单项目的快速搭建
- 【SpringBoot教程二】:RESTfull API简单项目的快速搭建
- Spring Boot-RESTfull API简单项目的快速搭建
- [置顶] Spring Boot-RESTfull API简单项目的快速搭建
- Spring Boot 之 RESTfull API 项目搭建
- Spring Boot -- RESTFul API 简单项目的快速搭建
- 重拾后端之Spring Boot(一):REST API的搭建可以这样简单
- springboot入门,简单能跑的项目快速搭建
- springboot (1) 快速搭建简单项目
- 快速搭建一个简单的springboot项目
- 快速搭建一个restful风格的springboot项目
- spring-boot项目简单搭建
- 【项目搭建】使用spring-boot进行REST风格的微服务开发入门
- 简单的springboot项目搭建
- SpringBoot之1分钟快速搭建Web项目(一)
- Spring Boot 学习(一) 快速搭建SpringBoot 项目
- 【Spring Boot教程】快速搭建spring boot项目工程
- 48. spring boot单元测试restfull API【从零开始学Spring Boot】
- spring boot单元测试restfull API【从零开始学Spring Boot】