
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..
FontAwesome & JdenticonFontAwesome을 활용하여 이모티콘 사용하기static 폴더로 이동$cd /yourProject/src/resources/staticNPM 으로 FontAwesome 설치$npm install font-awesome #2020-05-28 기준 4.7.0ver Jdenticon랜덤한 프로필 이미지를 생성해줌$npm install jdenticon-header 추가이모티콘 만들기→data-jdenticon-value 에 value에 따라 이모티콘 모양이 정해지게 된다. 고로 변하지 않는 값인 username을 value에 넣으면 항상 같은 프로필 이미지가 나오게 된다.
- Total
- Today
- Yesterday
- ubuntu
- like절
- ControllerAdvice
- springsecurity
- 자바
- JPA
- mapstruct
- springboot
- @formula
- 스프링시큐리티
- QueryDSL
- spring web
- 스프링부트 시작하기
- java11
- 유사결과
- ResourceHttpReqeustHandler
- 스프링부트
- Security
- Python
- Java
- booleanExpression
- FastAPI
- 스프링
- API
- 개발
- boot
- paawordencoder
- howtoinstallnginx
- 웹서비스
- Spring
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |