Spring Security 공식문서를 보며 개인적으로 필요한 내용을 기록하고 있습니다.
계속 업데이트 될 수 있습니다.
PasswordEncoder
- PasswordEncoder 인터페이스는 단방향 암호화를 수행한다.
- Spring Security 5.0 이전에는 PasswordEncoder 의 default 구현체가 NoOpPasswordEncoder 로 두었으나 지금은 여러가지 이유로 DelegatingPasswordEncoder 를 사용한다.
DelegatingPasswordEncoder
- 아래 사진과 같이 사용할 수 있다. 여러 알고리즘들 중 선택할 수 있다.

Spring Boot 의 Spring Security Auto Configuration
Hello Spring Security :: Spring Security
You can now run the Spring Boot application by using the Maven Plugin’s run goal. The following example shows how to do so (and the beginning of the output from doing so): Running Spring Boot Application $ ./mvn spring-boot:run ... INFO 23689 --- [ resta
docs.spring.io
Spring Boot 를 이용하여 Spring Security 를 적용했을 때, 위 블록의 내용과 같은 동작을 자동으로 제공한다.
'Spring' 카테고리의 다른 글
| @Repository 어노테이션 (1) | 2023.02.27 |
|---|---|
| JPQL (0) | 2023.02.20 |
| JPA 연관관계 (0) | 2023.02.16 |
| @NoArgsConstructor, @RequiredArgsConstructor, @AllArgsConstructor (0) | 2023.02.13 |
| Spring WebFlux - Annotated Controllers, URI Links (0) | 2023.02.12 |