Question : Displaying user details on the site
Answered by : pragya-keshap
{"tags":[{"tag":"textarea","content":"@GetMapping\npublic String index(Model model,\n\u00a0\u00a0Authentication authentication) {\n\u00a0\u00a0\u00a0\u00a0model.addAttribute(\"videos\", videoService.getVideos());\n\u00a0\u00a0\u00a0\u00a0model.addAttribute(\"authentication\", authentication);\n\u00a0\u00a0\u00a0\u00a0return \"index\";\n\u00a0\u00a0}","code_language":"java"}]}
Source : | Last Update : Wed, 22 Feb 23