![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
有杀气Plus
这个作者很懒,什么都没留下…
展开
-
记一次spider-flow创建增量爬取任务记录
使用spider-flow增量爬取网站数据,并存入数据库,下载网站附件原创 2022-03-18 10:58:06 · 3076 阅读 · 3 评论 -
字符串差异对比,google diff工具
业务场景:对比两个文本内容,找出差异并标识,导出差异文档实现:google-diff-match-patchgit :GitHub - google/diff-match-patch: Diff Match Patch is a high-performance library in multiple languages that manipulates plain text.https://github.com/google/diff-match-patchdemo:https:/原创 2021-10-28 12:09:05 · 1331 阅读 · 0 评论 -
java poi生成word 横向 插入多表格
//默认:宋体(wps)/等线(office2016) 5号 两端对齐 单倍间距runX.setText("舜发于畎亩之中, 傅说举于版筑之间, 胶鬲举于鱼盐之中, 管夷吾举于士...");runX.setBold(false);//加粗runX.setCapitalized(false);//我也不知道这个属性做啥的//runX.setCharacterSpacing(5);//这个属性报错runX.setColor("BED4F1");//设置颜色--十六进制runX.setDoubleSt原创 2021-06-28 20:28:02 · 2273 阅读 · 0 评论 -
java 数字、汉字转换(六→6 6→六)
数字转汉字:https://www.cnblogs.com/bsping/p/4514471.html//数转汉 public static String changeNum(int number) { String[] single = {"零", "一", "二", "三", "四", "五", "六", "七", "八", "九"};//汉字一到九 String[] unit = {"", "十", "百", "千", "万", "亿"};//汉字单位 Strin原创 2021-03-11 11:48:55 · 362 阅读 · 0 评论 -
java word操作 通过字符串生成word文件,读取word内容,word转pdf、html,pdf流输出展示到页面,file转 MultipartFile
一、java 通过字符串生成word文件POI maven配置 <poi.version>4.1.0</poi.version> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>${poi.version}</v.原创 2020-12-09 16:24:19 · 2228 阅读 · 0 评论 -
java mail发送邮件 MultipartFile 转 file
@PostMapping(value="send1",consumes = {MediaType.MULTIPART_FORM_DATA_VALUE},produces = {MediaType.APPLICATION_JSON_VALUE}) public void send1(String mail,String title,String content,@RequestPart("file") MultipartFile file){ try { Properties pro...原创 2020-12-14 17:19:18 · 1239 阅读 · 0 评论 -
java后台发送post请求 MultipartFile、json
1、需求:建立邮件发送中间建,转发邮件,以此跳过网闸。 1、邮件服务器部分: https://blog.csdn.net/qq_22850319/article/details/1111791532、java post请求public static Long sendGxMail(EmailRecords emailRecords,List<MultipartFile> uploadFiles) { try { String key = "...原创 2020-12-23 16:41:12 · 4778 阅读 · 0 评论 -
java 将html转为word导出 (富文本内容导出word)
业务:将富文本内容取出生成本地word文件参考百度的方法word本身是可以识别html标签,所以通过poi写入html内容即可1、引用poi相关jar2、直接生成本地doc文件(已测试)public static Attachment createWordForHtml(String html,String fileName,String type) { Attachment uploadAttachment = null; try { ..原创 2021-01-26 16:22:17 · 9633 阅读 · 11 评论