spring – Error: Consider defining a bean of type ‘org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder’ in your configuration

I am getting the following error message: APPLICATION FAILED TO START Description: Parameter 1 of constructor in dev.guilder.SnowballCalculator.UserManagement.Service.AppUserService required a bean of type ‘org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder’ that could not be found. Action: Consider defining a bean of type ‘org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder’ in your configuration. My WebSecurityConfig is: package dev.guilder.SnowballCalculator.Configurations; import dev.guilder.SnowballCalculator.UserManagement.Service.AppUserService; import lombok.AllArgsConstructor; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.authentication.dao.DaoAuthenticationProvider; … Read more