mirror of
https://github.com/cna-bootcamp/lifesub.git
synced 2026-06-12 20:49:09 +00:00
release
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -16,7 +16,9 @@ import java.util.Map;
|
||||
public class LoggingAspect {
|
||||
private final Gson gson = new Gson();
|
||||
|
||||
@Pointcut("execution(* com.unicorn..*.*(..))")
|
||||
//로깅 대상 패키지 지정. swagger관련 패키지는 제외함
|
||||
@Pointcut("execution(* com.unicorn..*.*(..)) && " +
|
||||
"!execution(* org.springdoc..*.*(..))")
|
||||
private void loggingPointcut() {}
|
||||
|
||||
@Before("loggingPointcut()")
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.unicorn.lifesub.common.config;
|
||||
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
|
||||
|
||||
@Configuration
|
||||
@EnableJpaAuditing
|
||||
public class JpaConfig {
|
||||
}
|
||||
@@ -7,23 +7,24 @@ import lombok.RequiredArgsConstructor;
|
||||
@RequiredArgsConstructor
|
||||
public enum ErrorCode {
|
||||
// Common
|
||||
INVALID_INPUT_VALUE(400, "Invalid input value"),
|
||||
INTERNAL_SERVER_ERROR(500, "Internal server error"),
|
||||
INVALID_INPUT_VALUE(100, "Invalid input value"),
|
||||
INTERNAL_SERVER_ERROR(110, "Internal server error"),
|
||||
|
||||
// Member
|
||||
MEMBER_NOT_FOUND(404, "Member not found"),
|
||||
INVALID_CREDENTIALS(401, "Invalid credentials"),
|
||||
TOKEN_EXPIRED(401, "Token expired"),
|
||||
SIGNATURE_VERIFICATION_EXCEPTION(20, "서명 검증 실패"),
|
||||
ALGORITHM_MISMATCH_EXCEPTION(30, "알고리즘 불일치"),
|
||||
INVALID_CLAIM_EXCEPTION(40, "유효하지 않은 클레임"),
|
||||
MEMBER_NOT_FOUND(200, "Member not found"),
|
||||
INVALID_CREDENTIALS(210, "Invalid credentials"),
|
||||
TOKEN_EXPIRED(220, "Token expired"),
|
||||
SIGNATURE_VERIFICATION_EXCEPTION(230, "서명 검증 실패"),
|
||||
ALGORITHM_MISMATCH_EXCEPTION(240, "알고리즘 불일치"),
|
||||
INVALID_CLAIM_EXCEPTION(250, "유효하지 않은 클레임"),
|
||||
|
||||
// Subscription
|
||||
SUBSCRIPTION_NOT_FOUND(404, "Subscription not found"),
|
||||
ALREADY_SUBSCRIBED(400, "Already subscribed to this service"),
|
||||
SUBSCRIPTION_NOT_FOUND(300, "Subscription not found"),
|
||||
ALREADY_SUBSCRIBED(310, "Already subscribed to this service"),
|
||||
|
||||
// Recommend
|
||||
NO_SPENDING_DATA(404, "No spending data found"),
|
||||
NO_SPENDING_DATA(400, "No spending data found"),
|
||||
NO_RECOMMENDATION_DATA(410, "추천 구독 카테고리 없음"),
|
||||
|
||||
// UnDefined
|
||||
UNDIFINED_ERROR(0, "정의되지 않은 에러");
|
||||
|
||||
Reference in New Issue
Block a user