Open chenqping opened 3 years ago
@Bean public UserDetailsService userDetailsService(UserRepository userRepo) { return username -> { User user = userRepo.findByUsername(username); if (user != null) { return user; } throw new UsernameNotFoundException( "User '" + username + "' not found"); }; }
Bad return type in lambda expression: User cannot be converted to UserDetailsService
@habuma