일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 코드워즈
- response
- @RequestBody
- DTO
- Codewars
- 코딩테스트
- actuator
- 파라미터
- enum
- 디자인 패턴
- @Value
- yml
- JWT
- 플라이웨이트
- ResponseDto
- Request
- Boot
- springboot
- RequestParam
- redis
- property
- 헬스체크
- Spring
- 프로퍼티
- 로그인
- @RequestParam
- Security
- RequestBody
- 반환
- Docker
- Today
- Total
목록Security (2)
있을 유, 참 진
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/Mk5bP/btsagPWZQhT/RS26P8EYphbiAXJvM6aed0/img.png)
JWT Filter 생성 - JwtSecurityConfig Spring Security 공통 에러처리 - JwtAccessDeniedHandler - JwtAuthenticationEntryPoint WebSecurity에 값 설정 JWT Filter 생성 💡 JWT 토큰을 활용해 Security에서 인가를 처리하는 필터를 생성, 차후 `UsernamePasswordAuthenticationFilter` 전에 들어가 JWT의 정보를 통해 유저의 인가를 처리한다. @Slf4j @RequiredArgsConstructor public class JwtFilter extends GenericFilter { //헤더에서 받아올 이름 지정 public static final String AUTHORIZATION..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bgVhAH/btr8Ixa4VeT/fuj1llHp8p2YgXVWfefokK/img.png)
회원가입 DTO Controller 및 SecurityConfig 설정 - Controller - SecurityConfig UserService 테스트 결과 회원가입 DTO @Getter @NoArgsConstructor @AllArgsConstructor public class UserDto { @NotNull @Size(min = 3, max = 50) private String userName; @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) @NotNull @Size(min = 3, max = 50) private String password; @NotNull @Size(min = 3, max = 50) private String nickName..