Default Bean Naming Conventions Seemed to have changed. Now fully qualified?
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.
Quote:
WebApplicationContextUtils.getWebApplicationContex t(context).getBean("tokenBasedRememberMeServices")
gives me a
Quote:
org.springframework.beans.factory.NoSuchBeanDefini tionException: No bean named 'tokenBasedRememberMeServices' is defined
In other words
Quote:
System.out.println WebApplicationContextUtils.getWebApplicationContex t(context).getBeansOfType(RememberMeServices.class ).toString()
returns:
Quote:
[org.springframework.security.web.authentication.re memberme.TokenBasedRememberMeServices#0:org.spring framework.security.web.authentication.rememberme.T okenBasedRememberMeServices@4b8da1c6]
So the bean name is
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.