What\'s the difference between @GetMapping and @RequestMapping(method = RequestMethod.GET)? I\'ve seen in some Spring Reactive examples, that
@GetMapping
@RequestMapping(method = RequestMethod.GET)
As you can see here:
Specifically, @GetMapping is a composed annotation that acts as a shortcut for @RequestMapping(method = RequestMethod.GET). Difference between @GetMapping & @RequestMapping @GetMapping supports the consumes attribute like @RequestMapping.
Specifically, @GetMapping is a composed annotation that acts as a shortcut for @RequestMapping(method = RequestMethod.GET).
Difference between @GetMapping & @RequestMapping
@RequestMapping
@GetMapping supports the consumes attribute like @RequestMapping.
consumes