Which of the following is NOT a correct way to bind with the parameter named "name" in HTTP request? Assume @GetMapping is given
(value = "/login") public ClassName method1(@RequestParam(value="customername") String name, @RequestParam String password) throws Exception { //rest of the code }
(value = "/login") public ClassName method1(@RequestParam(name="customername") String name, @RequestParam String password) throws Exception { //rest of the code }
(value = "/login") public ClassName method1(@RequestParam("customername") String name, @RequestParam String password) throws Exception { //rest of the code }
(value = "/login") public ClassName method1(@RequestParam(customername) String name, @RequestParam String password) throws Exception { //rest of the code }
To get all Infosys Certified Cloud Native Developer Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee