✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Ergänzen Sie die fehlenden Annotationen zum Unterschied MVC vs. REST (wenn keine Annotation fehlt, wählen Sie die Option "leer").
.s0 { color: #0033b3;}
.s1 { color: #080808;}
.s2 { color: #067d17;}
.s3 { color: #8c8c8c; font-style: italic;}
.s4, .s4 input, .s4 input:focus { color: #9E880D; }
@RequestMapping("/user")public class UserController {
@GetMapping("/5")
public ModelAndView getUser5(@RequestParam String name) {
ModelAndView modelAndView = new ModelAndView();
modelAndView.setViewName("user");
modelAndView.addObject("name", name);
return modelAndView;
}
@GetMapping("/7")
public String getUser7(@RequestParam String name) {
return name;
}}
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!