The full message is
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name \'userRepositoryUserDetailsSe
[org.cru.cloud.management.data.UserRepository]: : No qualifying bean of type
Can not find UserRepository bean. Maybe you forgot to put annotation to UserRepository.
@Component
public MyClass implements UserRepository{}
if you autowire userRepository then you MyClass will be injected.
Also :
public MyClass implements UserRepository{}
public YourClass implements UserRepository{}
@Autowired
public blabla(@Qualifier("myClass") UserRepository userRepo)
@Autowired
public blabla(@Qualifier("yourClass") UserRepository userRepo)
I guess this will help.