上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 58 下一页
摘要: 本来想网上下个软件处理下的,给我加了水印,不然就让我升会员,程序员都是薅人家羊毛,哪能被人家薅羊毛 1. 安装组件 (指定国内源,速度快些),带上版本号,最新版本会卡在 XXX(PEP 517) 上。 pip3 install opencv-python==3.4.9.31 -i https://p 阅读全文
posted @ 2022-06-23 11:00 VipSoft 阅读(178) 评论(0) 推荐(0)
摘要: JDK 实现 public class FutureTest { public static void main(String[] args) throws Exception { ExecutorService es = Executors.newFixedThreadPool(10); Futu 阅读全文
posted @ 2022-06-16 14:43 VipSoft 阅读(1304) 评论(0) 推荐(0)
摘要: POM <!-- https://mvnrepository.com/artifact/com.google.guava/guava --> <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> 阅读全文
posted @ 2022-06-16 13:39 VipSoft 阅读(148) 评论(0) 推荐(0)
摘要: 将 ECS 挂载 OSS 多Bucket ,进行文件存储后,发现PDF、图片在浏览器中访问URL,变成了下载,页不是预览。 1. 解决办法,文件类型 application/octet-stream 改成 application/pdf,但图片还是下载 2. 绑定自己的域中,【推荐】 https:/ 阅读全文
posted @ 2022-06-16 11:59 VipSoft 阅读(1679) 评论(0) 推荐(0)
摘要: Modules 把 Language level 调成 8 阅读全文
posted @ 2022-06-16 11:50 VipSoft 阅读(729) 评论(0) 推荐(0)
摘要: 如果线程中的执行时间过长,导致长时间被占用,可以通过新建一个子线程,来监控主线程的执行超时时间,如果超时了,通过子线程杀掉父线程 (主意,父线程被杀后,子线程还会活着) 子线程杀掉主线程 这个问题其实还是没有搞定。下面的代码只是发起了线程的中断,某一行代码执行结束后,不会执行后续的代码。但就这某一行 阅读全文
posted @ 2022-06-13 09:34 VipSoft 阅读(3323) 评论(0) 推荐(0)
摘要: 如果线程执行N久还没结束,就想把它杀掉,把线程留给其它任务使用。 思路:主线程执行时,开一个子线程来监控它,看是否执行完成。如果没有执行完成就把它干了,执行完了就不管。 package com.vipsoft.Thread; public class ThreadMain { public stat 阅读全文
posted @ 2022-06-10 14:42 VipSoft 阅读(193) 评论(0) 推荐(0)
摘要: ThreadPoolExecutor 介绍 简写: package com.vipsoft.Thread; import java.util.concurrent.*; import java.util.concurrent.atomic.AtomicInteger; public class Th 阅读全文
posted @ 2022-06-09 09:40 VipSoft 阅读(231) 评论(0) 推荐(0)
摘要: 线程池能够带来3个好处: 降低资源消耗:通过重复利用已创建的线程降低线程创建和销毁造成的消耗;提高响应速度:当任务到达时,任务可以不需要等到线程创建就能立即执行;提高线程的可管理性:线程是稀缺资源,如果无限制地创建,不仅会消耗系统资源,还会降低系统的稳定性,使用线程池可以进行统一分配、调优和监控。 阅读全文
posted @ 2022-06-08 11:17 VipSoft 阅读(97) 评论(0) 推荐(0)
摘要: IIS 配置目录浏览 在目录下 Web.config 下添加一句: <directoryBrowse enabled="true"/> <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <staticC 阅读全文
posted @ 2022-06-07 14:59 VipSoft 阅读(485) 评论(2) 推荐(0)
摘要: 首先 LinkedBlockingQueue 是线程安全的阻塞队列,LinkedBlockingQueue实现的生产者和消费者模型 阻塞队列与我们平常接触的普通队列(LinkedList或ArrayList等)的最大不同点,在于阻塞队列支出阻塞添加和阻塞删除方法。 阻塞添加:所谓的阻塞添加是指当阻塞 阅读全文
posted @ 2022-06-07 10:34 VipSoft 阅读(461) 评论(0) 推荐(0)
摘要: https://www.jianshu.com/p/cc2281b1a6bc https://blog.csdn.net/tonywu1992/article/details/83419448 继承关系图 /** * 节点类,用于存储数据 */ static class Node<E> { E it 阅读全文
posted @ 2022-06-06 10:11 VipSoft 阅读(46) 评论(0) 推荐(0)
摘要: 将Excel中的汉字列,转换成拼音首字母,并保存 需要安装导入 pypinyin、openpyxl 库 # pip install pypinyin from pypinyin import lazy_pinyin, Style import openpyxl def py(str_data): " 阅读全文
posted @ 2022-06-02 09:20 VipSoft 阅读(525) 评论(0) 推荐(0)
摘要: 在DataGrid中实现Button Command绑定 Command="{Binding editCommand}" 会默认查找UserList中对象的属性,而你的UserList中对象应该不包括editCommand属性;可以尝试:Command="{Binding DataContext.e 阅读全文
posted @ 2022-06-01 14:15 VipSoft 阅读(256) 评论(0) 推荐(0)
摘要: 备份数据库文件时,发现MySQL备份生成的文件名为 【vipsoft_周三】,发现是系统的日期格式问题。需调整日期格式,生成 【vipsoft_20220601.sql】 mysqldump -uroot -p110 vipsoft > D:\DBBackup\MySQL\vipsoft%Date: 阅读全文
posted @ 2022-06-01 10:26 VipSoft 阅读(158) 评论(0) 推荐(0)
摘要: 服务端接口代码如下: /** * 上传数据+实体信息 */ @RequestMapping("/upload") public String doctorAnalysis(HttpServletRequest request, @RequestParam(value = "userinfo") St 阅读全文
posted @ 2022-05-31 17:01 VipSoft 阅读(1265) 评论(0) 推荐(0)
摘要: 为什么浏览器中有些文件点击后是预览,有些是下载:https://www.cnblogs.com/vipsoft/p/18267174 SpringBoot 接口输出文件流 & Vue 下载文件流,获取 Header 中的文件名 https://www.cnblogs.com/vipsoft/p/16 阅读全文
posted @ 2022-05-27 16:09 VipSoft 阅读(4423) 评论(0) 推荐(0)
摘要: 几种数据格式的表示方式1.普通的值(数字,字符串,布尔) expire: 60 # 方便测试,设成 60 秒 2.对象、Map (属性和值) (键值对) 不支持tab,使用空格 vipsoft: api-url: http://xxxx file-path: /temp 3.数组 (List、Set 阅读全文
posted @ 2022-05-24 12:11 VipSoft 阅读(2231) 评论(0) 推荐(0)
摘要: 1.如何判断线程池所有任务是否执行完毕 package com.vipsoft.web; import org.junit.jupiter.api.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.sp 阅读全文
posted @ 2022-05-11 10:27 VipSoft 阅读(171) 评论(0) 推荐(0)
摘要: 将目录下的N个日志文件读写到一个文件中。 @Test void verification() throws Exception { File f = new File("D:\\Logs"); String wPath = "D:\\\\Logs\\0.logsAll.log"; File wf = 阅读全文
posted @ 2022-05-10 11:14 VipSoft 阅读(319) 评论(0) 推荐(0)
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 58 下一页