ng-tracker/src/main/java/ru/ulstu/configuration/PasswordEncoderConfiguration.java

14 lines
400 B
Java
Raw Normal View History

2018-05-04 17:08:19 +04:00
package ru.ulstu.configuration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
@Configuration
public class PasswordEncoderConfiguration {
@Bean
public BCryptPasswordEncoder bCryptPasswordEncoder() {
return new BCryptPasswordEncoder();
}
}