HeavenTang

导航

上一页 1 2 3 4 5 6 7 ··· 9 下一页

2023年3月23日

linux系统docker容器部署项目字体问题-Graphics2D在容器里面不显示字

摘要: 继上一个博客中生成 签章图片后,今日遇到一个问题, 本地不管如何改代码,都会将签名文字显示出来。 但是.... ....... 一旦部署在linux系统后,一直打印不出来,,纠结的呀。。 完全没想到, 原来是linux系统里面不兼容本地的字体,也就是没有那么多中文字体,除非安装。 ![](https 阅读全文

posted @ 2023-03-23 19:10 HeavenTang 阅读(185) 评论(0) 推荐(0) 编辑

2023年3月8日

多线程导出word

摘要: 导出word,以下为导出单个和zip的两种格式。 CountDownLatch运用 CountDownLatch和ExecutorService 线程池cachedThreadPool.submit 1、CountDownLatch 概念 CountDownLatch可以使一个获多个线程等待其他线程 阅读全文

posted @ 2023-03-08 11:06 HeavenTang 阅读(124) 评论(0) 推荐(0) 编辑

2023年2月27日

CountDownLatch和ExecutorService 线程池cachedThreadPool.submit

摘要: CountDownLatch运用 CountDownLatch和ExecutorService 线程池cachedThreadPool.submit 1、CountDownLatch 概念 CountDownLatch可以使一个获多个线程等待其他线程各自执行完毕后再执行。 CountDownLatc 阅读全文

posted @ 2023-02-27 10:30 HeavenTang 阅读(96) 评论(0) 推荐(0) 编辑

2022年12月29日

Java 导出word、pdf、excel的echart图形

摘要: 引用文章:https://www.codenong.com/cs109245248/ 利用 jfreechart 依赖导出 点击查看代码 <dependency> <groupId>org.jfree</groupId> <artifactId>jfreechart</artifactId> <ve 阅读全文

posted @ 2022-12-29 16:00 HeavenTang 阅读(893) 评论(0) 推荐(0) 编辑

Java 序列化,字段为null 是否返回

摘要: java字段值为null,不返回该字段 类上打注解 不让null值返回前端 场景: 有时候我们返回给前端的数据是null的,而这些为null的值前端也不需要,我们就没必要吧null值返回给前端。 第一种方法 那如果实体类很多,每个类上面都要加上么?当然不是,有个全局的方法。 第二种方法 applic 阅读全文

posted @ 2022-12-29 15:51 HeavenTang 阅读(822) 评论(0) 推荐(0) 编辑

2022年12月8日

java生成印章(方形、圆形)

摘要: 最近公司需要审批时,生成审批人姓名的印章。在找了一番后,终于有个例子了。参考来源: https://blog.csdn.net/kanglong129/article/details/103717497?spm=1001.2101.3001.6650.3&utm_medium=distribute. 阅读全文

posted @ 2022-12-08 10:38 HeavenTang 阅读(251) 评论(0) 推荐(0) 编辑

2022年11月19日

oracle 函数 rollup

摘要: 点击查看代码 select tt.departmentId,nvl(tt.departmentName,'合计') as departmentName, sum(tt.totalTutorNum), sum(tt.recruidTutorNum), sum(tt.inSchoolStuNum), s 阅读全文

posted @ 2022-11-19 11:57 HeavenTang 阅读(85) 评论(0) 推荐(0) 编辑

2022年10月26日

oracle字符串分割

摘要: 方式2 select regexp_substr('20180023,FDY018','[^,]+', 1, level) from dual connect by regexp_substr('20180023,FDY018', '[^,]+', 1, level) is not null 阅读全文

posted @ 2022-10-26 17:06 HeavenTang 阅读(48) 评论(0) 推荐(0) 编辑

2022年10月21日

react下载兼容浏览器

摘要: // 导出模板 export function exportTemplateExcel(url, params, config = {}) { return new Promise((resolve, reject) => { axios .get(url, { params: params, re 阅读全文

posted @ 2022-10-21 14:23 HeavenTang 阅读(29) 评论(0) 推荐(0) 编辑

2022年10月19日

CountDownLatch

摘要: // 批量修改 if (CollectionUtils.isNotEmpty(updateKsxxList)) { int oneBatch = MagicNumber.ONE_HUNDRED; int times = updateKsxxList.size() % oneBatch == Magi 阅读全文

posted @ 2022-10-19 15:25 HeavenTang 阅读(17) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 ··· 9 下一页