Spring boot提供了自己的登录实现(POST方法),如果我想维护用户登录成功/失败的历史记录(计数),我该怎么办?
答案 0 :(得分:0)
让以下内容成功:
public class CustomAuthenticationSuccessHandler implements AuthenticationSuccessHandler{
@Override
public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication)
throws IOException, ServletException {
// TODO Auto-generated method stub
......
}