fix: 엑셀 파일 경로 구분자를 File.separator로 변경 (Linux 환경 FileNotFoundException 수정)
Windows 백슬래시(\) 하드코딩으로 Linux 환경에서 파일을 찾지 못하는 버그 수정 - 11개 파일, 15군데 path+"\\"+fileName → path + File.separator + fileName - File import 누락된 4개 파일에 import 추가 Made-with: Cursor
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.pms.utility;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.sql.Connection;
|
||||
import java.sql.DriverManager;
|
||||
@@ -58,7 +59,7 @@ public class WBSParsingUtil {
|
||||
|
||||
List resultList = new ArrayList();
|
||||
|
||||
FileInputStream fis = new FileInputStream(path+"\\"+fileName);
|
||||
FileInputStream fis = new FileInputStream(path + File.separator + fileName);
|
||||
XSSFWorkbook workBook = new XSSFWorkbook(fis);
|
||||
XSSFSheet sheet = workBook.getSheetAt(0);
|
||||
Connection conn = null;
|
||||
|
||||
Reference in New Issue
Block a user