摘要: 1、ps -ef | grep java 2、jmap -dump:format=b,file=heap.hprof 20871 3、tar -cvf 1.tar /root/docker/safemanage_back/heap.hprof 4、使用mat工具分析 阅读全文
posted @ 2024-04-18 10:15 p_小白 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 由于xlsx底层使用xml存储,占用内存会比较大,官方也意识到这个问题,在3.8版本之后,提供了SXSSFWorkbook来优化写性能 原来代码 Workbook workbook = newXSSFWorkbook(inputStream); 优化后代码 Workbook workbook = n 阅读全文
posted @ 2024-04-18 09:47 p_小白 阅读(93) 评论(0) 推荐(0) 编辑
摘要: generateUUID:function(){ var d = new Date().getTime(), uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { var r = (d + Math 阅读全文
posted @ 2022-03-18 17:47 p_小白 阅读(107) 评论(0) 推荐(0) 编辑
摘要: https://www.douyacun.com/pdf/remove-watermark 阅读全文
posted @ 2022-02-25 09:52 p_小白 阅读(88) 评论(0) 推荐(0) 编辑
摘要: nginx -s quittaskkill /f /t /im nginx.exestart nginx 阅读全文
posted @ 2022-02-24 13:33 p_小白 阅读(37) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript" src="${basePath}/static/lib/qrcode.js"></script> $('#qrcode').empty();var qrcode = new QRCode("qrcode", { width: 240, h 阅读全文
posted @ 2021-12-24 11:29 p_小白 阅读(37) 评论(0) 推荐(0) 编辑
摘要: public static void base64StringToPdf(String base64Content, String filePath) { BASE64Decoder decoder = new BASE64Decoder(); byte[] bytes; try { bytes = 阅读全文
posted @ 2021-12-23 19:10 p_小白 阅读(3866) 评论(0) 推荐(0) 编辑
摘要: 方法一:通过线程的sleep方法。 Thread.currentThread().sleep(1000);在需要程序等待的地方加入这个语句,实现让程序等待,这里的参数1000是以毫秒为单位,即这语句可以让程序等待1秒。 方法二:TimeUnit类里的sleep方法。 import java.util 阅读全文
posted @ 2021-12-20 17:51 p_小白 阅读(1657) 评论(0) 推荐(0) 编辑
摘要: isEmpty系列 StringUtils.isEmpty() 是否为空. 可以看到 " " 空格是会绕过这种空判断,因为是一个空格,并不是严格的空值,会导致 isEmpty(" ")=false StringUtils.isEmpty(null) = true StringUtils.isEmpt 阅读全文
posted @ 2021-10-19 16:53 p_小白 阅读(265) 评论(0) 推荐(0) 编辑
摘要: package com.zy.ruralhouse.utils; import com.zy.ruralhouse.mapper.RuralInfoMapper; import org.apache.tools.zip.ZipEntry; import org.apache.tools.zip.Zi 阅读全文
posted @ 2021-10-19 09:48 p_小白 阅读(476) 评论(0) 推荐(0) 编辑

你再瞅我 还瞅!关注啊