# spring-boot-restful
**Repository Path**: caychen/spring-boot-restful
## Basic Information
- **Project Name**: spring-boot-restful
- **Description**: No description available
- **Primary Language**: Java
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 1
- **Forks**: 0
- **Created**: 2018-04-02
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
## Springmvc常用注解:
* **@Controller**:修饰控制器类,用来创建处理http请求的对象
* **@RestController**:Spring4之后加入的注解,原来在 **@Controller** 中返回json需要 **@ResponseBody** 来配合,如果直接用 **@RestController** 替代 **@Controller** 就不需要再配置 **@ResponseBody**,默认返回json格式。
* **@RequestMapping**:配置url映射。以下四个注解是简化版的 **@RequestMapping**
* **GetMapping**
* **PutMapping**
* **PostMapping**
* **DeleteMapping**
* **@PathVariable**:参数放置在url的路径中
* **@RequestParam**:获取请求参数
------
#### 插入一波广告,欢迎关注
|**#**|**#**|
|:--|:--:|
|**作者:**|**Cay**|
|**QQ:**|
|
|**邮箱:**|**412425870@qq.com**|
|**微信公众号:Cay课堂**|****|
|**csdn博客:**|**[http://blog.csdn.net/caychen](http://blog.csdn.net/caychen "我的csdn博客")**|
|**码云:**|**[https://gitee.com/caychen/](https://gitee.com/caychen/ "我的码云")**|
|**github:**|**[https://github.com/caychen](https://gitee.com/caychen/ "我的github")**|
|**点击群号或者扫描二维码即可加入QQ群:[328243383(1群)](https://jq.qq.com/?_wv=1027&k=54r3suD)**|****|
|**点击群号或者扫描二维码即可加入QQ群:[180479701(2群)](https://jq.qq.com/?_wv=1027&k=521g7zY)**|****|