随笔分类 -  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; ... 阅读全文
posted @ 2017-11-09 09:53 yshy 阅读(427) 评论(0) 推荐(0)
摘要:1:生成服务器端的keystore和truststore文件 (1)以jks格式生成服务器端包含Public key和Private Key的keystore文件 keytool -genkey -alias qdssfw -keystore serverKeystore.jks -keypass 阅读全文
posted @ 2017-11-08 16:55 yshy 阅读(3725) 评论(0) 推荐(0)
摘要:增加 transient 修饰进行解决,例如: private transient final DecimalFormat df = new DecimalFormat("#0.00"); 阅读全文
posted @ 2017-10-19 13:14 yshy 阅读(9949) 评论(0) 推荐(0)
摘要:public static void main(String[] args) { String xmlStr = ""+ "" + " " + " 1" + " 本月数" + ... 阅读全文
posted @ 2017-10-19 09:26 yshy 阅读(517) 评论(0) 推荐(0)
摘要:private final DecimalFormat df = new DecimalFormat("#0.00"); public void test(){ String filePath = "G:\\tmp\\qhjt_yd.xls"; String destPath = "G:\\tmp\ 阅读全文
posted @ 2017-10-10 21:22 yshy 阅读(2303) 评论(0) 推荐(0)
摘要:public static String getIP() { StringBuilder sb = new StringBuilder(""); try { Enumeration allNetInterfaces = NetworkInterface.getNetworkInterfaces(); ... 阅读全文
posted @ 2017-09-16 14:31 yshy 阅读(331) 评论(0) 推荐(0)
摘要:public static void main(String[] args) { SbVo sb = new SbVo(); sb.setBusiness("SB"); sb.setIphone("123456789"); String param = new Gson().toJson(sb); ... 阅读全文
posted @ 2017-09-01 10:24 yshy 阅读(1860) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2017-08-21 15:45 yshy 阅读(309) 评论(0) 推荐(0)
摘要:public static byte[] fileToZip(){ ZipOutputStream append = null; ByteArrayOutputStream bos = new ByteArrayOutputStream(); try { append = new Zip... 阅读全文
posted @ 2017-08-20 13:21 yshy 阅读(812) 评论(0) 推荐(0)
摘要: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")... 阅读全文
posted @ 2017-06-23 17:06 yshy 阅读(3856) 评论(0) 推荐(0)
摘要:1:Excel格式 2:ExcelUtil.java 3:测试 4:依赖包 commons-io-2.4.jar poi-3.15.jar 阅读全文
posted @ 2017-06-22 19:40 yshy 阅读(6656) 评论(2) 推荐(1)
摘要: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.... 阅读全文
posted @ 2017-06-19 19:57 yshy 阅读(42596) 评论(2) 推荐(1)
摘要:1:AutowiringSpringBeanJobFactory.java 2:GrdbJob.java 3:SchedulerConfig.java 阅读全文
posted @ 2017-05-17 13:42 yshy 阅读(7665) 评论(0) 推荐(1)
摘要:0 0/1 8-18 ? * 2-6 阅读全文
posted @ 2017-05-17 13:33 yshy 阅读(10355) 评论(0) 推荐(1)
摘要:访问: {testPage(age:20,pageNo:1){pageNo,pageSize,totalCount,list{uno,uname,age}}} 返回结果: 阅读全文
posted @ 2017-04-08 17:36 yshy 阅读(2914) 评论(2) 推荐(1)
摘要:public static byte[] fileToBytes(String filePath) { byte[] buffer = null; File file = new File(filePath); FileInputStream fis = null; ByteArrayOutputStream bo... 阅读全文
posted @ 2017-03-24 07:14 yshy 阅读(15451) 评论(0) 推荐(0)
摘要:查看端口占用的PID进程号 C:\Users\yan>netstat -ano | findstr "8888" 查看是哪个进程或者程序占用了17840端口 C:\Users\yan>tasklist|findstr "17840" 阅读全文
posted @ 2016-12-15 15:30 yshy 阅读(179) 评论(0) 推荐(0)
摘要:使用的是poi3.13 http://mvnrepository.com/artifact/org.apache.poi/poi/3.13 阅读全文
posted @ 2016-12-07 09:21 yshy 阅读(3203) 评论(0) 推荐(1)
摘要: 阅读全文
posted @ 2016-11-22 10:41 yshy 阅读(1331) 评论(0) 推荐(0)
摘要:1:增加操作 2:查询操作 阅读全文
posted @ 2016-10-21 07:25 yshy 阅读(4009) 评论(0) 推荐(0)