@RequestMapping 有RequestMethod.GET 和 RequestMethod.POST 两种方式;
@RequestMapping(value="/hello",method=RequestMathod.GET)
@GetMapping("hello") 相当于缩写了 上面的,只能使用GET
@RequestMapping 有RequestMethod.GET 和 RequestMethod.POST 两种方式;
@RequestMapping(value="/hello",method=RequestMathod.GET)
@GetMapping("hello") 相当于缩写了 上面的,只能使用GET