摘要:
package com.liu.test; import java.security.GeneralSecurityException; import java.util.Date; import java.util.Hashtable; import java.util.Properties; i 阅读全文
摘要:
private String numberFormat(Cell cell){ NumberFormat numberFormat = NumberFormat.getInstance(); // 不显示千位分割符,否则显示结果会变成类似1,234,567,890 numberFormat.setG 阅读全文
摘要:
1 import org.apache.poi.hssf.usermodel.HSSFWorkbook; 2 import org.apache.poi.ss.format.CellFormat; 3 import org.apache.poi.ss.usermodel.Cell; 4 import 阅读全文
摘要:
1 package com.liuhq.o2o.utils; 2 3 import java.security.Key; 4 import java.security.SecureRandom; 5 6 import javax.crypto.Cipher; 7 import javax.crypt 阅读全文
摘要:
1.引入jar包 <dependency> <groupId>com.github.penggle</groupId> <artifactId>kaptcha</artifactId> <version>2.3.2</version> </dependency> 2.在web.xml中定义样式 <s 阅读全文
摘要:
1 public void downloadSystemHelp(){ 2 DataInputStream in = null; 3 OutputStream out= null; 4 File f=null; 5 try { 6 7 f = new File(this.getClass().get 阅读全文
摘要:
1 //查询时间 2 Properties p = new Properties(); 3 if (createtime1 != null && !createtime1.equals("") && createtime2 != null && !createtime2.equals("")) { 阅读全文
摘要:
Java位运算符位运算符用来对二进制位进行操作,Java中提供了如下所示的位运算符:位运算符: (>>,<<,>>>,&,|,^,~), 位运算符中,除~以外,其余均为二元运算符。操作数只能为整型和字符型数据。 基础知识补码:所有的整数类型(除了char类型之外)都是有符号的整数。这意味着他们既能表 阅读全文