Spring boot 2+ Could not Autowire. There is more than one bean of 'UserDetailsService'
UserDetailsService was provided by spring. To Autowire you need to configure it with.
@Bean
public UserDetailsService getUserDetails(){
return new JwtUserDetailService(); // Implementation class
}
If you are not interested in Bean Configuration. you can autowire JwtUserDetailService directly.
@Autowired
private JwtUserDetailService jwtUserDetailsService;