<!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
# (一)连接器[Joiner] package com.jcx.guava.utilites; import com.google.common.base.Joiner; import com.google.common.io.Files; import org.junit.Test; impor ...
分类:
其他好文 时间:
2020-07-04 23:07:17
阅读次数:
140
相信在项目中,对数据进行动态导出这是一个比较常见的功能。对于数据导出我们可以使用Apache-POI这个框架来帮我来进行Excel的写入与读取。下面就用代码来实现Apache POI写入与读取excel文件。 1、Apache POI基本概念 下面将简单的描述一下当进行Excel读取与写入的时候要使 ...
分类:
编程语言 时间:
2020-07-04 21:01:58
阅读次数:
66
hashmap、hashtable、Linkedhashmap、concurrentmap ...
分类:
其他好文 时间:
2020-07-04 20:59:50
阅读次数:
78