最近做的项目,使用了easypoi,很好用,可惜遇到一个问题,每次上传之后,发现tem文件夹下的临时文件不删除,后仔细查看发现是使用了文件流传入 InputStream is = file.getInputStream(); List list = ExcelImportUtil.importExc ...
分类:
其他好文 时间:
2020-07-08 13:15:44
阅读次数:
78
org.apache.poi.hssf.usermodel.HSSFWorkbook <!-- https://mvnrepository.com/artifact/org.apache.poi/poi --> <dependency> <groupId>org.apache.poi</groupI ...
分类:
Web程序 时间:
2020-07-08 13:01:59
阅读次数:
65
一、说明 数据驱动测试的核心:是测试数据与测试脚本分离,实现测试脚本的参数化,例如:在使用工具测试时,常常会使用到参数化设置; 使用数据驱动测试方便后期维护,提高脚本的可重用性; 做数据驱动的方式有多种例如:Excel、CSV、MySQL等 二、使用Excel实现数据驱动 1、在pom文件添加POI ...
分类:
编程语言 时间:
2020-07-07 15:27:26
阅读次数:
96
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <link rel="stylesheet" href="css/style1.css" /> <style type="text/css"> .box{ widt ...
分类:
其他好文 时间:
2020-07-07 13:28:28
阅读次数:
70
package cn.deacy.work.util; import org.apache.poi.hssf.usermodel.HSSFCell; import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.ss ...
分类:
编程语言 时间:
2020-07-07 13:23:37
阅读次数:
63
Excel文档有.xls和.xlsx后缀的,当我们想把它们放在一个方法中进行读取excel文件时,有一个特别省事的做法: 1 public static List<String> Read(String path) throws IOException { 2 //调用read方法,传入你要读文件的 ...
分类:
编程语言 时间:
2020-07-07 09:30:37
阅读次数:
55
The session protocol describes the basic structure of an OBEX conversation. It consists of a format for the “conversation” between devices and a set o ...
分类:
其他好文 时间:
2020-07-05 22:44:14
阅读次数:
61
给你一个字符串 S、一个字符串 T,请在字符串 S 里面找出:包含 T 所有字符的最小子串。 示例: 输入: S = "ADOBECODEBANC", T = "ABC"输出: "BANC"说明: 如果 S 中不存这样的子串,则返回空字符串 ""。如果 S 中存在这样的子串,我们保证它是唯一的答案。 ...
分类:
编程语言 时间:
2020-07-05 20:54:07
阅读次数:
70
1.基于注解ioc 1.扫描包<context:component-scan>2.穿件对象交给容器 @Component 相当于:<bean id="" class=""> 3.依赖注入@Autowired 相当于:<property name="" ref=""> 4.@Value 注入基本数据类 ...
分类:
编程语言 时间:
2020-07-05 13:32:26
阅读次数:
79
poi中提供了一个Sheet.protectSheet()方法用于设置表单保护密码和一个XSSFCellStyle.setLocked()方法用于设置单元格是否使用表单保护密码进行锁定,将两者配合使用就可以达到锁定单元格的效果。 public static void WriteExcelByPoi( ...
分类:
其他好文 时间:
2020-07-05 10:29:21
阅读次数:
65