问题整理
飞猪大仙
全干工程师
展开
-
问题整理-fianlly块不一定会执行导致的现场问题
try块外的代码报错,程序直接停止运行,所以finally内的代码不会执行。今天现场用户通知我们现场日志压测时发现mq消息一直未接收。原创 2024-03-22 11:07:27 · 113 阅读 · 1 评论 -
Spring gradlew.bat编译过程
最近抱着学习的态度下载了spring的源码,官方文档介绍运行gradlew.bat编译源码。但是过程一直不太顺利,在网上找的文章也没有达到预想的效果,大多都是报包找不到。下载后,放在报错信息的文件地址下,作者报的是 file:/D:/work/software/gradle-4.3.1/repo/org/apache/xerces/resolver/2.9.1/resolver-2.9.1.pom;阿里仓库地址:https://developer.aliyun.com/mvn/search。原创 2023-03-22 09:52:28 · 458 阅读 · 0 评论 -
记录线程interruptexception对线程中断标志位的影响
这里写自定义目录标题记录线程InterruptedException自动复位线程中断标志位结果记录线程InterruptedException自动复位线程中断标志位一般我们中断线程时习惯使用interrpt()去向线程发送中断请求。今天发现了一个有意思的事情就是InterruptedException处理完后会复位中断标志位为false。以下写了一个复现的Demopublic static void main(String[] args) { Thread t = new Thre原创 2022-03-23 17:07:21 · 788 阅读 · 0 评论 -
2021-11-01
#E: could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporary unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is an other process using it问题分析:apt-get 命令安装postgresql时报上述错误, 报错信息提示有资源占 用着上述两个文件问原创 2021-11-01 15:11:49 · 67 阅读 · 0 评论