- 博客(6)
- 收藏
- 关注
原创 简单的使用poi获取和导出数据
简单的使用poi获取和导出数据1.添加依赖:gradle:dependencies {compile group: 'org.apache.poi', name: 'poi', version: '3.14'compile group: 'org.apache.poi', name: 'poi-ooxml', version: '3.14'}一定要使用:version: '3.14'2.demoimport com.nt.slry.domain.vo.ExcelDataVO
2020-07-06 10:06:22
415
原创 easypoi导出excel
准备modelprivate Long id;@Excel(name = "用户名称")private String username;public Long getId() { return id;}public void setId(Long id) { this.id = id;}public String getUsername() { return username;}public void setUsername(String us.
2020-06-08 17:42:22
106
原创 poi使用HSSFWorkbook 导出excel
HSSFWorkbook 为office2003 ,XSSFWorkbook 为office2007以上可用/* poi */@org.junit.Testpublic void Poi1Test() {try {// 创建工作簿HSSFWorkbook wb = new HSSFWorkbook();// 工作表HSSFSheet sheet = wb.createSheet(“学生信息表”);// 标头行,代表第一行HSSFRow header = sheet.createRow(1
2020-06-05 10:30:46
293
原创 poi添加倾斜线
/*** 添加倾斜线*/@org.junit.Testpublic void main1() {try {Workbook wb = new XSSFWorkbook();Sheet sheet = wb.createSheet(“XX销售对照表”);CreationHelper helper = wb.getCreationHelper();Drawing drawing = sheet.createDrawingPatriarch();ClientAnchor anchor = he
2020-06-04 22:18:27
698
原创 登录验证码
//==================================验证码=====controller@CrossOrigin@ResponseBody@GetMapping("/code")@ApiOperation(value = "验证码", notes = "jpg,Junit_CK_Key,Junit_CK_Value值")public String getCheckCode(HttpServletRequest request, HttpServletResponse r.
2020-05-20 09:36:49
256
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人