Google News
logo
Java Spring Boot - Interview Questions
What is the difference between RequestMapping and GetMapping?
The @GetMapping is a composed annotation that acts as a shortcut for @RequestMapping(method = RequestMethod.GET). Both these methods support the consumes. The consume options are :
 
consumes = “text/plain”
consumes = {“text/plain”, “application/*”}

 

Advertisement