Skip to content

Commit

Permalink
refactor: 파일 경로 정적 변수로 추출
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim0914 committed Jan 25, 2024
1 parent 397222e commit 370e931
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@
@RequiredArgsConstructor
public class FcmMessageSender implements MessageSendManager {

private static final String FCM_JSON_PATH = "config/pium-fcm.json";

@PostConstruct
public void initialize() {
try {
ClassPathResource resource = new ClassPathResource("config/pium-fcm.json");
ClassPathResource resource = new ClassPathResource(FCM_JSON_PATH);
FirebaseOptions options = FirebaseOptions.builder()
.setCredentials(GoogleCredentials.fromStream(resource.getInputStream()))
.build();
Expand Down

0 comments on commit 370e931

Please sign in to comment.