Skip to content

Commit

Permalink
fix: properties
Browse files Browse the repository at this point in the history
  • Loading branch information
LSBsity committed Aug 3, 2024
1 parent cd3b268 commit 86fd48a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Profile;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@Getter
@NoArgsConstructor
@Profile({"local","prod"})
@PropertySource({"classpath:application-prod.yml", "classpath:application-local.yml"})
public class KakaoProperties {

@Value("${oauth2.kakao.api-key}")
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/team5/doghae/DoghaeApplicationTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest(classes = DoghaeApplicationTests.class)
@SpringBootTest
class DoghaeApplicationTests {

@Test
Expand Down

0 comments on commit 86fd48a

Please sign in to comment.