The <user-service>
tag is used to define users explicitly in the spring configuration file. It does not allow to specify your own UserDetailsService
implementation.
To use your CustomUserDetailsService
, all you have to do is to remove the <user-service>
tag and replace it by your custom UserDetailsService
like this :
<bean id="inMemoryUserService" class="you.package.CustomUserDetailsService"/>
And then you should be able to log in with pepe:psw .