随笔分类 - Java
摘要:package codecounter; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.util.regex.Matcher; ...
阅读全文
摘要:1:生成服务器端的keystore和truststore文件 (1)以jks格式生成服务器端包含Public key和Private Key的keystore文件 keytool -genkey -alias qdssfw -keystore serverKeystore.jks -keypass
阅读全文
摘要:增加 transient 修饰进行解决,例如: private transient final DecimalFormat df = new DecimalFormat("#0.00");
阅读全文
摘要:public static void main(String[] args) { String xmlStr = ""+ "" + " " + " 1" + " 本月数" + ...
阅读全文
摘要:private final DecimalFormat df = new DecimalFormat("#0.00"); public void test(){ String filePath = "G:\\tmp\\qhjt_yd.xls"; String destPath = "G:\\tmp\
阅读全文
摘要:public static String getIP() { StringBuilder sb = new StringBuilder(""); try { Enumeration allNetInterfaces = NetworkInterface.getNetworkInterfaces(); ...
阅读全文
摘要:public static void main(String[] args) { SbVo sb = new SbVo(); sb.setBusiness("SB"); sb.setIphone("123456789"); String param = new Gson().toJson(sb); ...
阅读全文
摘要:package com.microwisdom.utils; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.RenderingHints; import java.awt.geom.AffineTransform...
阅读全文
摘要:public static byte[] fileToZip(){ ZipOutputStream append = null; ByteArrayOutputStream bos = new ByteArrayOutputStream(); try { append = new Zip...
阅读全文
摘要:public static void main(String[] args) { List list = new ArrayList();//节假日列表,正式环境中根据日期条件从数据库中获取 list.add("2017-06-24"); list.add("2017-06-25"); list.add("2017-07-01")...
阅读全文
摘要:1:Excel格式 2:ExcelUtil.java 3:测试 4:依赖包 commons-io-2.4.jar poi-3.15.jar
阅读全文
摘要:package com.microwisdom.utils; import java.security.NoSuchAlgorithmException; import java.security.SecureRandom; import java.util.logging.Level; import java.util.logging.Logger; import javax.crypto....
阅读全文
摘要:1:AutowiringSpringBeanJobFactory.java 2:GrdbJob.java 3:SchedulerConfig.java
阅读全文
摘要:0 0/1 8-18 ? * 2-6
阅读全文
摘要:访问: {testPage(age:20,pageNo:1){pageNo,pageSize,totalCount,list{uno,uname,age}}} 返回结果:
阅读全文
摘要:public static byte[] fileToBytes(String filePath) { byte[] buffer = null; File file = new File(filePath); FileInputStream fis = null; ByteArrayOutputStream bo...
阅读全文
摘要:查看端口占用的PID进程号 C:\Users\yan>netstat -ano | findstr "8888" 查看是哪个进程或者程序占用了17840端口 C:\Users\yan>tasklist|findstr "17840"
阅读全文
摘要:使用的是poi3.13 http://mvnrepository.com/artifact/org.apache.poi/poi/3.13
阅读全文
摘要:1:增加操作 2:查询操作
阅读全文

浙公网安备 33010602011771号