From 352032879e730154a2e03de5f587e68ca4fbaf09 Mon Sep 17 00:00:00 2001 From: Song-EunJu Date: Thu, 17 Nov 2022 20:33:51 +0900 Subject: [PATCH] =?UTF-8?q?mod:=20cors=20=EC=98=B5=EC=85=98=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/example/goorm/FileItemReaderJobConfig.java | 10 +++++----- src/main/java/com/example/goorm/WebMvcConfig.java | 1 - 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/example/goorm/FileItemReaderJobConfig.java b/src/main/java/com/example/goorm/FileItemReaderJobConfig.java index a87d8d2..e7c5a39 100644 --- a/src/main/java/com/example/goorm/FileItemReaderJobConfig.java +++ b/src/main/java/com/example/goorm/FileItemReaderJobConfig.java @@ -44,7 +44,7 @@ // @Bean // public Step csvFileItemReaderStep() { // return stepBuilderFactory.get("csvFileItemReaderStep") -// .chunk(chunkSize) +// .chunk(chunkSize) // // Reader 에서 읽어올 타입 - String, Writer에 넘겨줄 타입이 Oreum // .reader(csvReader.csvFileItemReader()) // 일단 csv에서 String 읽기 // .processor(csvProcessor()) // String을 가공 @@ -64,7 +64,7 @@ // double y = Double.parseDouble(pos.split(" ")[1]); // double z = Double.parseDouble(pos.split(" ")[2]); // -// Test oreum = Test.builder() +// Test test = Test.builder() // .name(name) // .xPos(x) // .yPos(y) @@ -73,8 +73,8 @@ // .day(dayCheck) // .build(); // -// oreum.toTypeEnum(type); -// testRepository.save(oreum); +// test.toTypeEnum(type); +// testRepository.save(test); // if((monthCheck == 1 || monthCheck == 3 || monthCheck == 5 || monthCheck == 7 // || monthCheck == 8 || monthCheck == 10 || monthCheck ==12) && dayCheck == 31) { // monthCheck++; @@ -89,7 +89,7 @@ // dayCheck = 0; // } // dayCheck++; -// return oreum; +// return test; // }; // } // diff --git a/src/main/java/com/example/goorm/WebMvcConfig.java b/src/main/java/com/example/goorm/WebMvcConfig.java index e7ca745..3952abc 100644 --- a/src/main/java/com/example/goorm/WebMvcConfig.java +++ b/src/main/java/com/example/goorm/WebMvcConfig.java @@ -15,7 +15,6 @@ public void addCorsMappings(CorsRegistry registry) { .allowedOrigins("*") .allowedMethods("*") .allowedHeaders("*") - .allowCredentials(true) .maxAge(3600L); }