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")

1.属性配置

2.Controller使用


2.@PathVariable 与 @RequestParam 的区别
(1)@PathVariable


(2)@RequestParam


3.@GetMapping 和 @PostMapping 简写
@RequestMapping(value="/say", method=RequestMethod.GET) // 等同于 @GetMapping(value="/say")
