-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix : DIG-76 Value 값 주입 못하는 버그 수정 및 잘못된 상수값 수정
- LoginResponse가 빈으로 등록되지 않아서 Value 어노테이션이 동작 안하고 있었다. - NOT_ALREADY_JOINED 잘못된 값 수정
- Loading branch information
1 parent
8b957f7
commit c1cb8cf
Showing
3 changed files
with
31 additions
and
20 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
src/main/java/com/ogjg/daitgym/user/constants/UserConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.ogjg.daitgym.user.constants; | ||
|
||
import com.ogjg.daitgym.domain.ExerciseSplit; | ||
import jakarta.annotation.PostConstruct; | ||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
public class UserConstants { | ||
public static final String DEFAULT_HEALTH_CLUB_NAME = ""; | ||
@Value("${cloud.aws.default.profile-img}") | ||
public String awsDefaultUrlTemp; | ||
public static String AWS_DEFAULT_PROFILE_IMG_URL; | ||
public static final String DEFAULT_INTRODUCTION = DEFAULT_HEALTH_CLUB_NAME; | ||
public static final String DEFAULT_PREFERRED_SPLIT = ExerciseSplit.ONE_DAY.getTitle(); | ||
|
||
public static final boolean ALREADY_JOINED = true; | ||
public static final boolean NOT_ALREADY_JOINED = false; | ||
public static final boolean DELETED = true; | ||
public static final boolean NOT_DELETED = false; | ||
|
||
@PostConstruct | ||
public void setUrl() { | ||
AWS_DEFAULT_PROFILE_IMG_URL = awsDefaultUrlTemp; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters