diff --git a/src/main/java/zipdabang/server/apiPayload/reponse/ResponseDto.java b/src/main/java/zipdabang/server/apiPayload/reponse/ResponseDto.java index 7fc6e00..9555ae4 100644 --- a/src/main/java/zipdabang/server/apiPayload/reponse/ResponseDto.java +++ b/src/main/java/zipdabang/server/apiPayload/reponse/ResponseDto.java @@ -24,7 +24,6 @@ public class ResponseDto { @Schema(description = "응답 메시지", requiredMode = Schema.RequiredMode.REQUIRED, example = "요청에 성공하였습니다.") private final String message; @Schema(description = "응답 결과", requiredMode = Schema.RequiredMode.REQUIRED, example = "응답 결과") - @JsonInclude(JsonInclude.Include.NON_NULL) private T result; @@ -35,7 +34,8 @@ public static ResponseDto of(T result){ } public static ResponseDto of(BaseCode code,T result){ - return new ResponseDto<>(true, 2000 , code.getReasonHttpStatus().getMessage(), result); + ResponseDto tResponseDto = new ResponseDto<>(true, code.getReasonHttpStatus().getCode(), code.getReasonHttpStatus().getMessage(), result); + return tResponseDto; } // 실패한 경우 응답 생성 diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index e50765b..032d138 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -14,7 +14,7 @@ spring: ## # local redis # redis: # host: localhost - +# redis: host: zipdabang-redis.osattk.ng.0001.apn2.cache.amazonaws.com batch: