⽤于标记这个类是⼀个控制器,返回⻚⾯的时候使⽤;如果要返回JSON,则需
要在接⼝上使⽤@ResponseBody才可以
作⽤:⽤于标记这个类是⼀个控制器,返回JSON数据的时候使⽤,如果使⽤这
个注解,则接⼝返回数据会被序列化为JSON
所以:@RestController = @Controller+@ResponseBody
接受任意请求
4.@GetMapping("")接受Get请求
5.@PostMapping("")接受Post请求
6.@SpringBootApplication⽤于标记是SringBoot应⽤
7.@RequestMapping作⽤:路由映射,⽤于类上做1级路径;⽤于某个⽅法上做⼦路径
eg:
@RequestMapping("/api/v1/video")



