Skip to content

Commit

Permalink
Merge pull request #150 from Hanaro-trip-together-bank/feature/dues_paid
Browse files Browse the repository at this point in the history
Feature/dues paid
  • Loading branch information
ny2060 authored Jun 7, 2024
2 parents bf98d81 + 49bb92b commit 3da549f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ public class FirebaseConfig {
@Bean
public FirebaseApp firebaseApp() throws IOException {

InputStream resource = new ClassPathResource("src/main/resources/triptogether-e7bac-firebase-adminsdk-peiki-127517aa66.json").getInputStream();
InputStream resource = new ClassPathResource("triptogether-e7bac-firebase-adminsdk-peiki-127517aa66.json").getInputStream();

// JsonReader jsonReader = new JsonReader(new InputStreamReader(resource));
// jsonReader.setLenient(true);

byte[] jsonBytes = resource.readAllBytes();
String jsonString = new String(jsonBytes, StandardCharsets.UTF_8);
System.out.println("fcm"+jsonString);

// Gson을 사용하여 JSON 문자열을 JsonObject로 파싱
Gson gson = new Gson();
Expand Down

0 comments on commit 3da549f

Please sign in to comment.