Notes use @RequestMapping and @GetMapping @PostMapping difference

  • @GetMapping is a combination of notes, is an abbreviation @RequestMapping (method = RequestMethod.GET) a.
  • @PostMapping is a combination of notes, is an abbreviation @RequestMapping (method = RequestMethod.POST) a.
  •  @RequestMapping is a process for annotation request address mapping, it can be used for class or method. For the class, all the methods in response to the request class are represented in the address as the parent path.

 

Guess you like

Origin www.cnblogs.com/sece/p/10937295.html