# 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课堂**|**![](https://github.com/caychen/readme/raw/master/img/%E5%BE%AE%E4%BF%A1%E5%85%AC%E4%BC%97%E5%8F%B7.jpg)**| |**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)**|**![](https://github.com/caychen/readme/raw/master/img/1%E7%BE%A4.png)**| |**点击群号或者扫描二维码即可加入QQ群:[180479701(2群)](https://jq.qq.com/?_wv=1027&k=521g7zY)**|**![](https://github.com/caychen/readme/raw/master/img/2%E7%BE%A4.png)**|