I have a spring service
if i remove the ("UserService") I get the below error
public class UserService implements IUserService, UserDetailsService
My understanding is that if the service bean name is not provided, it will take the class name as bean name.
Cannot resolve reference to bean 'UserService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'UserService' is defined
But as per this error, it is not working like that.
Is the bean name mandatory ? or am i missing some thing.