public String welcome(Model model) {
model.addAttribute("info",infoSer.getInfo());
return "index";
}
@GetMapping("/login")
<BUG>public String login(HttpServletRequest request, Model model) {
String result = request.getParameter("result");</BUG>
if (result != null && result.equals("fail")) {
model.addAttribute("success", 0);
}

public String welcome(Model model) {
model.addAttribute("info",infoSer.getInfo());
return "index";
}
@GetMapping("/login")
public String login(HttpServletRequest request, Model model) {
model.addAttribute("avatar", infoSer.getInfo().getAvatar());
String result = request.getParameter("result");
if (result != null && result.equals("fail")) {
model.addAttribute("success", 0);
}
