8.Microservices and Spring Security - Encrypt User Password (BCryptPasswordEncoder)

Опубликовано: 25 Март 2026
на канале: Pavan Tricks
661
4

in this video, we encode the user password and store it in the database.
for that we are using BCryptPasswordEncoder.

POM.xml
add spring security jar.

artifact :spring-boot-starter-security


@Bean
public PasswordEncoder encoder() {
return new BCryptPasswordEncoder();
}


@EnableWebSecurity