problem with overriding autologin in spring security?

greetings everybody iam using spring security 3 remember me service as follows


and i want to perform some logic in the autologin so i tried to override the AbstractRememberMeServices as follows:


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


public abstract class AbstractRememberMeServices implements RememberMeServices{

 public Authentication autoLogin(HttpServletRequest arg0,
   HttpServletResponse arg1) {
  System.out.println("Auto Login");
  return null;

 public void loginSuccess(HttpServletRequest arg0, HttpServletResponse arg1,
   Authentication arg2) {
  System.out.println("Login Success");



but the autologin occurs with no action,the user auto login but the print statement is not printed? what's wrong?


The fact that you have named your class AbstractRememberMeServices does not mean that every other class which was previously extending now extends your I don't mean to be impolite, but you need to review your knowledge of Java basics.

Concerning you question, you need to write a custom implementation, configure it in Spring and register it using the services-ref attribute:

<security:remember-me services-ref="myRememberMeServices"/>

Need Your Help

how to send data through URL in Google app Script?


I need to send data of my spreadsheet to an other server, I've tried this.I am not getting error but its not working too.

Installing Pandas using Pip on Windows 8.1 with Python 3.4

python pandas pip visual-c++-2010

I'm trying to install Pandas on my machine using Pip after downloading the necessary .whl file off of Pandas website. I'm running into the problem that Visual C++ 10.0 is required and that it was u...