I must be missing a configuration or something but for some reason by beans are not being named according to their camelCase'd class name but rather a fully qualified java class name. Does anyone know why this is happening to me?
e.g.
gives me aWebApplicationContextUtils.getWebApplicationContex t(context).getBean("tokenBasedRememberMeServices")
In other wordsorg.springframework.beans.factory.NoSuchBeanDefini tionException: No bean named 'tokenBasedRememberMeServices' is defined
returns:System.out.println WebApplicationContextUtils.getWebApplicationContex t(context).getBeansOfType(RememberMeServices.class ).toString()
So the bean name is[org.springframework.security.web.authentication.re memberme.TokenBasedRememberMeServices#0:org.spring framework.security.web.authentication.rememberme.T okenBasedRememberMeServices@4b8da1c6]
org.springframework.security.web.authentication.re memberme.TokenBasedRememberMeServices
and not tokenBasedRememberMeServices
This seems to be happening to all my beans that I don't assign a name or an id attribute.


Reply With Quote
