Skip to content

Commit

Permalink
chore: #68 Redis, S3 설정 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
kyxxgsoo committed Sep 28, 2024
1 parent 35de1ce commit 1fdb0d6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config
2 changes: 1 addition & 1 deletion src/main/java/com/cabin/plat/config/RedisConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class RedisConfig {
@Value("${spring.data.redis.port}")
private int redisPort;

@Value("${spring.data.redis.password}")
@Value("${spring.data.redis.password:}")
private String redisPassword;

// @Value("${spring.data.redis.database}")
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/com/cabin/plat/global/util/S3FileComponent.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ public String uploadFile(String category, MultipartFile multipartFile) {
} catch (AmazonS3Exception e) {
// S3 업로드 실패 시 에러 코드 분기
if (isImage) {
System.out.println("TEST");
System.out.println(e.getMessage());
System.out.println(isImage);
throw new RestApiException(S3ErrorCode.FAILED_UPLOAD_S3_IMAGE);
} else {
throw new RestApiException(S3ErrorCode.FAILED_UPLOAD_S3_FILE);
Expand Down

0 comments on commit 1fdb0d6

Please sign in to comment.