@GetMapping用于將HTTP get請求映射到特定處理程序的方法注解
是一個組合注解,是@RequestMapping(method = RequestMethod.GET)的縮寫。
@PostMapping用于將HTTP post請求映射到特定處理程序的方法注解
是一個組合注解,是@RequestMapping(method = RequestMethod.POST)的縮寫。
@GetMapping用于將HTTP get請求映射到特定處理程序的方法注解
是一個組合注解,是@RequestMapping(method = RequestMethod.GET)的縮寫。
@PostMapping用于將HTTP post請求映射到特定處理程序的方法注解
是一個組合注解,是@RequestMapping(method = RequestMethod.POST)的縮寫。