<security:user name="admin" password="admin" authorities="ROLE_USER, ROLE_ADMIN" />
<security:user name="user" password="user" authorities="ROLE_USER" />
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [application-security.xml]; nested
exception is java.lang.IllegalStateException: AuthenticationManager has already been registered!
As one would expect with Plain Old Spring Beans (POSB ;-0), namespaced elements can not be overridden. I don't know if that's intentional, but poor user (like me) is taken by surprise to see it not working.