Nandkumar Tekale
Nandkumar Tekale

Reputation: 16158

Remember me service in Spring Security

I am getting this log on console :

[UserDetailsServiceInjectionBeanPostProcessor] RememberMeServices is not an instance of AbstractRememberMeServices. UserDetailsService will not be automatically injected.

Can anyone tell me why this? I think this might create a problem.

Thanks in advance.

Upvotes: 1

Views: 467

Answers (1)

Rob Winch
Rob Winch

Reputation: 21720

This is just an informational message and does not mean there is a problem. If your custom implementation of RememberMeServices extends AbstractRememberMeServices and you are using the <remember-me/> element Spring Security will automatically inject an instance of the UserDetailsService for you. This means if you are creating a custom RememberMeServices that requires a UserDetailsService and you have not extended AbstractRememberMeServices you must explicitly wire it. If the custom RememberMeServices does not require a UserDetailsService you can safely ignore this log statement (it is at INFO level not error level).

Upvotes: 2

Related Questions