|
@@ -15,6 +15,7 @@ import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
|
|
import org.apache.poi.ss.usermodel.Row;
|
|
|
import org.apache.poi.ss.usermodel.Sheet;
|
|
|
import org.apache.poi.ss.usermodel.Workbook;
|
|
|
+import org.apache.poi.util.IOUtils;
|
|
|
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
|
|
import org.junit.Test;
|
|
|
import org.junit.runner.RunWith;
|
|
@@ -38,12 +39,12 @@ public class DrugTest10 {
|
|
|
@Autowired
|
|
|
EntityService entityService;
|
|
|
private static int maxCount= -1;
|
|
|
- private static String drugExcelPath = "C:\\Users\\dell\\Desktop\\图谱\\药品说明书测试.xlsx";
|
|
|
+ private static String drugExcelPath = "C:\\Users\\dell\\Desktop\\图谱\\药品说明书.xlsx";
|
|
|
static HSSFWorkbook workbook;
|
|
|
static String startLabel = "药品";
|
|
|
@Test
|
|
|
public void writeNeo4j() throws Exception {
|
|
|
-
|
|
|
+ IOUtils.setByteArrayMaxOverride(236196920);
|
|
|
String propertys = "英文名称,商品名称,成份,性状,适应症,不良反应";
|
|
|
workbook = new HSSFWorkbook();//这里也可以设置sheet的Name
|
|
|
String accessToken = BaidubceUtil.getAccessToken();
|