userDetailService required a single bean,but 2 were found
APPLICATION FAILED TO START
Description:
Field userDetailsService in com.tihom.security.app.config.TiHomAuthorizationServerConfig required a single bean, but 2 were found: - myUserDetailsService: defined in file [/Users/pengshuai3/project/thrid/TiHom-Security/tihom-security-demo/target/classes/com/tihom/security/MyUserDetailsService.class] - rbacUserDetailsService: defined in file [/Users/pengshuai3/project/thrid/TiHom-Security/tihom-security-authorize/target/classes/com/tihom/security/rbac/authentication/RbacUserDetailsService.class]
Action:
Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed
解决了吗,他这个项目能用吗