@@ -23,6 +23,7 @@ import java.io.IOException;
public class SecurityAuthenticationFailureHandler implements AuthenticationFailureHandler {
@Override
public void onAuthenticationFailure(HttpServletRequest request, HttpServletResponse response, AuthenticationException exception) throws IOException, ServletException {
+ request.getSession().setAttribute("message", "用户名或密码错误!");
response.sendRedirect("/login.html");
}