I am trying to configure spring protection to use a service that I implemented for authentication. My services and entity manager and everything that is configured with annotations. I do not want to move the entire configuration of the service, dao and entity manager to XML. How can I configure the authenticator provider for a bean service link that is configured only through annotations?
Here is the configuration in xml
<authentication-manager>
<authentication-provider user-service-ref="userService" />
</authentication-manager>
And here is the service definition
@Configurable
@Service( value = "userService" )
public class UserServiceImpl
extends BaseDataServiceAbstract<User, Long>
implements UserService
{
source
share