1 2 3 Map m=new HashMap(); m.put("user", username); //model.addAttribute("user", username); 你把屏蔽的这一行,取消屏蔽就可以在页面拿到。