All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.taills.common.security.config.PasswordEncoderConfig Maven / Gradle / Ivy

package io.github.taills.common.security.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * @ClassName PasswordEncoderConfig
 * @Description
 * @Author nil
 * @Date 2021/10/24 2:48 下午
 **/
@Configuration
public class PasswordEncoderConfig {
    @Bean
    public PasswordEncoder passwordEncoder() {
        return new BCryptPasswordEncoder();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy