Конструктор DaoAuthenticationProvider в классе org.springframework.security.authentication.dao.DaoAuthenticationProviderJAVA

Программисты JAVA общаются здесь
Anonymous
Конструктор DaoAuthenticationProvider в классе org.springframework.security.authentication.dao.DaoAuthenticationProvider

Сообщение Anonymous »

Код: Выделить всё

  @Bean

public DaoAuthenticationProvider authenticationProvider(UserDetailsService userDetailsService, PasswordEncoder passwordEncoder) {
DaoAuthenticationProvider authProvider = new DaoAuthenticationProvider();
authProvider.setUserDetailsPasswordService((UserDetailsPasswordService) userDetailsService);
authProvider.setPasswordEncoder(passwordEncoder);
return authProvider;
}

конструктор DaoAuthenticationProvider в классе org.springframework.security.authentication.dao.DaoAuthenticationProvider нельзя применять к заданным типам;

Подробнее здесь: https://stackoverflow.com/questions/798 ... urity-auth

Вернуться в «JAVA»