Created
April 27, 2017 21:02
-
-
Save sidneydemoraes/9444ca3ecc0cb6d1d70f385e880a3653 to your computer and use it in GitHub Desktop.
TechTalk - Gradle + Spring Boot + Groovy - Spring Security - Criptografia de Senha
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.springframework.context.annotation.Bean | |
import org.springframework.context.annotation.Configuration | |
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder | |
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter | |
@Configuration | |
class ConfigWebMvc extends WebMvcConfigurerAdapter { | |
@Bean | |
BCryptPasswordEncoder passwordEncoder() { | |
BCryptPasswordEncoder bCryptPasswordEncoder = new BCryptPasswordEncoder(); | |
return bCryptPasswordEncoder; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment