Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev -> main #3

Merged
merged 56 commits into from
Feb 15, 2024
Merged
Changes from 1 commit
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
ae2bbd5
chore: 불필요한 파일 삭제
hyoguoo Feb 11, 2024
ec5fa87
chore: QueryDsl / Swagger / Validation 의존성 추가
hyoguoo Feb 11, 2024
095cae9
chore: 컨벤션으로 인한 패키지명 수정
hyoguoo Feb 11, 2024
023dd42
chore: JWT 의존성 추가
hyoguoo Feb 11, 2024
3d5471b
feat: QueryDsl Config 추가
hyoguoo Feb 11, 2024
f8894ce
feat: Swagger Config 추가
hyoguoo Feb 11, 2024
23d5691
feat: Security Config 추가
GiHoo Feb 11, 2024
f86f107
feat: AccessToken 생성/검증하는 JwtProvider 구현
GiHoo Feb 11, 2024
c8f0f49
feat: JwtAuthenticationFilter 구현
GiHoo Feb 11, 2024
a34ef82
refactor: sonarLint 적용
GiHoo Feb 11, 2024
8ad9ebd
feat: BaseEntity 추가
hyoguoo Feb 11, 2024
726cb30
feat: Email 검증 로직을 위한 Email VO 추가
hyoguoo Feb 11, 2024
0a880f2
feat: 필수 정보만 포함한 Member Entity 추가
hyoguoo Feb 11, 2024
6ae8ba9
feat: 회원가입/로그인 을 위한 Request DTO 추가
hyoguoo Feb 11, 2024
9c2cebf
feat: Password Encoder 사용을 위해 Bean 주입 Configuration 추가
hyoguoo Feb 11, 2024
03c6d8b
feat: Member 생성 시 패스워드 정책 검증 및 인코드를 위한 Util 클래스 추가
hyoguoo Feb 11, 2024
d86b44a
chore: 회원 가입 DTO 클래스명 변경
hyoguoo Feb 11, 2024
57a7e46
feat: Member Sign Up / Sign In 기능 개발
hyoguoo Feb 11, 2024
250c1c5
fix: UserDetailService 구현체 구현
hyoguoo Feb 13, 2024
fd5b024
fix: Member 조회 시 roles 정보도 가져오도록 수정
hyoguoo Feb 13, 2024
533dbd6
chore: reformat code
hyoguoo Feb 13, 2024
fb3d099
refactor: roles final 제거 및 생성 시 ROLE_USER 권한 추가
hyoguoo Feb 13, 2024
744eec8
feat: 권한 테스트 Controller 추가
hyoguoo Feb 13, 2024
d75000d
fix: requestMatchers 올바른 URL 로 변경
hyoguoo Feb 13, 2024
183d2c5
docs: Swagger Docs 작성을 위한 interface 추가
hyoguoo Feb 13, 2024
1d948a3
mod: 인증 관련 기능 Member* -> Auth* prefix 변경
hyoguoo Feb 13, 2024
02d81f5
feat: Entity 생성 시 createdAt / updatedAt 기본값으로 생성되도록 설정 및 updatedAt 시간…
hyoguoo Feb 13, 2024
b8828f0
feat: Error Response 클래스 추가
hyoguoo Feb 13, 2024
e6f6143
feat: 인증관련 Custom Exception 생성 및 적용
hyoguoo Feb 13, 2024
437603c
feat: 인증관련 Global Exception Handler 구현
hyoguoo Feb 13, 2024
792a99a
refactor: Auth 도메인 분리
hyoguoo Feb 13, 2024
4991d75
feat: getMemberByEmail / addMember 구현
hyoguoo Feb 13, 2024
e784234
refactor: AuthService에서 MemberService 의존하도록 변경
hyoguoo Feb 13, 2024
33608a0
refactor: Member / Auth Exception 분리
hyoguoo Feb 13, 2024
9b712db
feat: 로그인 response dto 추가
hyoguoo Feb 13, 2024
ac0ab2e
feat: 의도치 않은 에러를 잡는 Exception Handler 추가
hyoguoo Feb 13, 2024
5494877
feat: Success Message AOP 적용
hyoguoo Feb 13, 2024
70b4b09
refactor: 패키지명 명확하게 수정
hyoguoo Feb 13, 2024
2743f0a
refactor: Exception 패키지 명확하게 구분
hyoguoo Feb 13, 2024
f5d8f27
refactor: 메서드명 명확하게 수정
hyoguoo Feb 13, 2024
f2ef421
refactor: Reformat Code
hyoguoo Feb 13, 2024
e971294
refactor: google style guide 적용
hyoguoo Feb 13, 2024
0b07ded
docs: issue template 작성
GiHoo Feb 14, 2024
023352f
docs: bug, etc 이슈 템플릿 작성 및 feat 템플릿 수정
GiHoo Feb 14, 2024
93e6809
docs: Pull Request Template 생성
GiHoo Feb 14, 2024
2422513
fix: swagger json 데이터 예외 처리 추가
hyoguoo Feb 14, 2024
be6faeb
chore: 파일 마지막 줄 개행 추가
hyoguoo Feb 14, 2024
2cbf6c2
infra: CI 세팅 (#2)
GiHoo Feb 14, 2024
752da3e
chore: CI/CD를 위한 docker 추가
GiHoo Feb 15, 2024
b60a875
chore: CI Workflow 수정
GiHoo Feb 15, 2024
13bd18e
chore: CI를 위한 test application.properties 추가
hyoguoo Feb 15, 2024
660d240
test: DB Connection test 코드 추가
hyoguoo Feb 15, 2024
c785104
chore: flow 이름 명확하게 변경
hyoguoo Feb 15, 2024
777b990
test: DB Connection 테스트 DATA JPA 사용으로 변경
hyoguoo Feb 15, 2024
7ecf006
test: DB Connection 테스트 원복
hyoguoo Feb 15, 2024
9ec7ffa
chore: CD workflow 작성
hyoguoo Feb 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: swagger json 데이터 예외 처리 추가
hyoguoo committed Feb 14, 2024
commit 2422513f6a09b3d460409e3439fdb214fd558cc2
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package ei.algobaroapi.global.response;

import ei.algobaroapi.global.response.message.ErrorResponse;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.core.MethodParameter;
import org.springframework.http.MediaType;
import org.springframework.http.converter.HttpMessageConverter;
@@ -12,6 +13,9 @@
@RestControllerAdvice
public class ResponseAdvice implements ResponseBodyAdvice<Object> {

@Value("${springdoc.api-docs.path}")
private String apiDocsPath;

@Override
public boolean supports(MethodParameter returnType,
Class<? extends HttpMessageConverter<?>> converterType) {
@@ -26,6 +30,9 @@ public Object beforeBodyWrite(Object body, MethodParameter returnType,
if (body instanceof ErrorResponse) {
return ResponseUtil.error((ErrorResponse) body);
}
if (request.getURI().getPath().contains(apiDocsPath)) {
return body;
}
return ResponseUtil.success(body);
}
}