
Spring security Setting Spring boot 에 Securiry dependency를 추가하고 간단하게 설정하는 방법을 포스팅합니다. 부족한 부분은 계속 수정할 예정입니다. build.gradle implementation 'org.springframework.boot:spring-boot-starter-security' 위와 같이 dependecy 추가하고 프로젝트를 실행해보면 모든 요청에 Security가 걸리게 되어 기본 로그인 화면으로 Redirect됩니다. 기본 로그인 정보는 콘솔 log 를 확인해보면 아래와 같이 자동으로 비밀번호가 생성된 것을 확인할 수 있습니다. Default ID : user 하지만 모든 연결을 Security가 막는것을 원하지 않기 때문..
Password Encoder✓Spring Security password Encoder스프링 시큐리티 권장 PasswordEncoderPasswordEncoderFactories.createDelegationPasswordEncoder기본 알고리즘 : bcrypt패스워드 같은 중요한 정보는 암호화를 꼭 해줘야한다.단방향 암호화를하면 좋다해싱 알로리즘 & 솔트 (salt)해싱은 말 그대로 유저가 입력한 비밀번호에 약간의 소금을 치는 것이다. 약간의 문자열을 추가하여 암호화를 한다.실제 적용Bean 등록@Configuration public class AppConfig { @Bean public PasswordEncoder passwordEncoder() { return PasswordEncoderFact..
- Total
- Today
- Yesterday
- Java
- ControllerAdvice
- boot
- java11
- Python
- 스프링
- 자바
- paawordencoder
- FastAPI
- 웹서비스
- booleanExpression
- mapstruct
- 유사결과
- springboot
- JPA
- @formula
- like절
- spring web
- Spring
- 스프링부트
- 스프링부트 시작하기
- 개발
- QueryDSL
- howtoinstallnginx
- 스프링시큐리티
- API
- Security
- ubuntu
- springsecurity
- ResourceHttpReqeustHandler
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |