I\'m trying to implement the below, but my authenticationManager instance throws the below exception and is not autowired. How do I get an instance of it from Spring manual
First, provide an explicit bean name for your AuthenticationManager
<authentication-manager alias="authenticationManager">
...
</authentication-manager>
Second, use qualifier when auto-wiring:
@Autowired
@Qualifier("authenticationManager")
protected AuthenticationManager authenticationManager;