- @RestController and @RequestMapping是springMVC的注解,不是springboot特有的
- @RestController = @Controller+@ResponseBody
- @SpringBootApplication = @Configuration+@EnableAutoConfiguration+@ComponentScan
- @GetMapping(path = "/{city_id}/{user_id}")
@PathVariable("city_id") String cityId,@PathVariable("user_id") String userId - @GetMapping(value="/v1/page_user2")
@RequestParam(defaultValue="0",name="page",required = true) int from, int size - @RequestMapping("/v1/save_user")
@RequestBody User user - @PostMapping("/v1/login")
- @PutMapping("/v1/put")
- @DeleteMapping("/v1/del")
代码地址 https://github.com/mambamentality8/springboot
相关文章
- 11-14springboot2.x与钉钉集成及开发(三)(一)群消息推送
- 11-14SpringBoot2整合Mybatis拦截器,拦截mapper接口的某个方法
- 11-14微服务开发_SpringBoot2核心技术_基础入门_Spring与SpringBoot_SpringBoot优缺点_分布式带来的困难
- 11-14SpringBoot RestFul风格API接口开发
- 11-14云主机服务比价与预测系统开发心得--第四周(2)--SpringBoot整合Thymeleaf
- 11-14SpringBoot2.x开发案例之整合Quartz任务管理系统
- 11-14接口测试之Fiddler+HTTP协议headers
- 11-14JMeter5.1开发SMTP协议接口脚本
- 11-14网络接口EthernetV2协议(以太网第二版协议)
- 11-14SpringBoot2核心技术-核心功能 2 Web开发