Controller Methods
Learn Controller Methods (Controllers, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes Controller methods are handler methods mapped to requests with @RequestMapping or the shortcuts @GetMapping , @PostMapping , @PutMapping , @DeleteMapping . Parameters are bound by annotations: @PathVariable , @RequestParam , @RequestBody , @RequestHeader , @ModelAttribute . Return types include String (view), POJO (body), ResponseEntity , void and ModelAndView .