Skip to content

Commit

Permalink
Merge pull request #69 from Team-PLAT/chore/#68/serverSetting
Browse files Browse the repository at this point in the history
[CHORE] Redis, S3 설정 변경
  • Loading branch information
dgh06175 authored Sep 28, 2024
2 parents 79e2a25 + 9a68955 commit 0f42a35
Show file tree
Hide file tree
Showing 3 changed files with 3 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
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public String uploadFile(String category, MultipartFile multipartFile) {
} catch (AmazonS3Exception e) {
// S3 업로드 실패 시 에러 코드 분기
if (isImage) {
System.out.println(e.getMessage());
throw new RestApiException(S3ErrorCode.FAILED_UPLOAD_S3_IMAGE);
} else {
throw new RestApiException(S3ErrorCode.FAILED_UPLOAD_S3_FILE);
Expand Down

0 comments on commit 0f42a35

Please sign in to comment.