摘要: public InputStream generateLabel(List> ordersList) throws Exception { Document document = getDocument(); ByteArrayOutputStream out = new ByteArrayOutputStream(); PdfWriter ... 阅读全文
posted @ 2017-08-23 15:59 令狐る侠 阅读(224) 评论(0) 推荐(0) 编辑
摘要: import javax.swing.*; import javax.swing.text.AttributeSet; import javax.swing.text.SimpleAttributeSet; import javax.swing.text.StyleConstants; import javax.swing.text.StyleContext; import java.awt.*... 阅读全文
posted @ 2017-08-18 11:53 令狐る侠 阅读(10040) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { List tax = new ArrayList(); tax.add(70); tax.add(55); tax.add(40); tax.add(30); tax.add(20); tax.add(10); // 关税倒序排列 Coll... 阅读全文
posted @ 2017-08-16 10:16 令狐る侠 阅读(323) 评论(0) 推荐(0) 编辑
摘要: List bytesList = result.getT(); if (bytesList != null) { int length = bytesList.size(); for (int i = 0; i < length; i++) { File file = new File("D:/" + i + ".png"); try { F... 阅读全文
posted @ 2017-07-05 14:40 令狐る侠 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 上传 //异步上传文件 var $file = $('#file'); $('#btn').click(function() { var data = new FormData(); data.append('file', $file[0].files[0]); data.append('foo', 'bar'); var xhr = new XMLHt... 阅读全文
posted @ 2017-06-30 19:29 令狐る侠 阅读(940) 评论(0) 推荐(0) 编辑
摘要: /** * Created by aixiaofeng on 17/2/6. */ public class FedroadSpider extends ExpressSpider { private static final SimpleDateFormat FMT_COL_DATE = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); ... 阅读全文
posted @ 2017-06-23 20:59 令狐る侠 阅读(656) 评论(0) 推荐(0) 编辑
摘要: 代码实列 阅读全文
posted @ 2017-06-23 20:47 令狐る侠 阅读(171) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { int []numbers = {1,2,5,4,3,46,66,36,6}; Random random = new Random(); int index = random.nextInt(numbers.length); System.out.println(numbers[index... 阅读全文
posted @ 2017-06-23 09:34 令狐る侠 阅读(2851) 评论(0) 推荐(0) 编辑
摘要: Cron表达式是一个字符串,字符串以5或6个空格隔开,分开工6或7个域,每一个域代表一个含义,Cron有如下两种语法 格式: Seconds Minutes Hours DayofMonth Month DayofWeek Year 或 Seconds Minutes Hours DayofMont 阅读全文
posted @ 2017-06-15 19:11 令狐る侠 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 参考:http://blog.csdn.net/tolcf/article/details/39213217# 批量修改的二种方式 第一种方式 <update id="updateBatch" parameterType="Map"> update aa set a=#{fptm}, b=#{cso 阅读全文
posted @ 2017-06-12 20:12 令狐る侠 阅读(268) 评论(0) 推荐(0) 编辑