Spring Boot 中 Controller 使用

1.属性配置

2.Controller使用

2.@PathVariable 与 @RequestParam 的区别

(1)@PathVariable

(2)@RequestParam

3.@GetMapping 和 @PostMapping 简写

@RequestMapping(value="/say", method=RequestMethod.GET)
// 等同于
@GetMapping(value="/say")

posted @ 2019-01-01 19:06  每天都要进步一点点  阅读(225)  评论(0)    收藏  举报