Skip to content

Commit

Permalink
Merge pull request 9oorm-Oreum#4 from 9oorm-Oreum/feat/batch
Browse files Browse the repository at this point in the history
mod: cors 옵션 삭제
  • Loading branch information
Song-EunJu authored Nov 17, 2022
2 parents 72892ac + 3520328 commit 46276f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/main/java/com/example/goorm/FileItemReaderJobConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
// @Bean
// public Step csvFileItemReaderStep() {
// return stepBuilderFactory.get("csvFileItemReaderStep")
// .<String, Oreum>chunk(chunkSize)
// .<String, Test>chunk(chunkSize)
// // Reader 에서 읽어올 타입 - String, Writer에 넘겨줄 타입이 Oreum
// .reader(csvReader.csvFileItemReader()) // 일단 csv에서 String 읽기
// .processor(csvProcessor()) // String을 가공
Expand All @@ -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)
Expand All @@ -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++;
Expand All @@ -89,7 +89,7 @@
// dayCheck = 0;
// }
// dayCheck++;
// return oreum;
// return test;
// };
// }
//
Expand Down
1 change: 0 additions & 1 deletion src/main/java/com/example/goorm/WebMvcConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ public void addCorsMappings(CorsRegistry registry) {
.allowedOrigins("*")
.allowedMethods("*")
.allowedHeaders("*")
.allowCredentials(true)
.maxAge(3600L);
}

Expand Down

0 comments on commit 46276f2

Please sign in to comment.