required a bean of type 'org.springframework.security.core.userdetails.UserDetailsService' that could not be found
Add a bean for UserDetailsService
@Autowired
private UserDetailsService userDetailsService;
@Bean
public UserDetailsService userDetailsService() {
return super.userDetailsService();
}