zl程序教程

您现在的位置是:首页 >  后端

当前栏目

Spring Boot 中 Controller 使用

SpringBoot Controller 使用
2023-09-11 14:15:30 时间

1.属性配置

2.Controller使用

2.@PathVariable 与 @RequestParam 的区别

(1)@PathVariable

(2)@RequestParam

3.@GetMapping 和 @PostMapping 简写

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