BCryptPasswordEncoder (1) 썸네일형 리스트형 Spring Boot) BCryptPasswordEncoder 사용해서 사용자 비밀번호 암호화하기 1. 의존성 추가 build.gradle 파일에 의존성을 추가해준다. spring-boot-starter-security dependencies { ... implementation 'org.springframework.boot:spring-boot-starter-security' ... } 2. SpringSecurity.java 이걸 추가하면 웹 처음 화면에 기본적으로 제공해주는 로그인 창이 뜨는데 이건 사용하지 않을 것이므로 컨피그를 아래와 같이 추가해준다. package com.kpmg.lighthouse.tpplatform.tpplatform; import org.springframework.context.annotation.Bean; import org.springframework.contex.. 이전 1 다음