摘要: 一、官方地址 DynamicTP 二、踩坑 先要把依赖版本搞定,后面的配置才能顺利生效 1.一定要确定好自己是什么项目,SpringBoot或SpringCloud 不同类型的项目使用的DynamicTP的配置不相同 如果pom.xml文件中带有<artifactId>spring-cloud-de 阅读全文
posted @ 2025-02-19 15:12 卡利的亲爹 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 本文主要说明代码编写思路和具体代码,下面的博文讲的比较全面 参考文章:https://www.cnblogs.com/jingmoxukong/p/4303826.html 代码思路(以大根堆为例) 堆排一共分2个阶段:1. 创建一个大根堆 2.交换堆顶和堆尾元素,获取到堆顶元素,并重新维护大根堆 阅读全文
posted @ 2025-02-11 17:11 卡利的亲爹 阅读(0) 评论(0) 推荐(0) 编辑
摘要: public class CreateThread { public static void main(String[] args) throws ExecutionException, InterruptedException { //1. 继承Thread类,重写run方法 NewThread 阅读全文
posted @ 2025-02-08 09:40 卡利的亲爹 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 第一版代码 Thread threadOdd = new Thread(() -> { for (int i = 1; i <= 99; i+=2){ synchronized (sharedThing){ System.out.println(Thread.currentThread().getN 阅读全文
posted @ 2025-02-07 15:51 卡利的亲爹 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 新接手的vue3项目在安装依赖的时候经常下载失败,报错Couldn't find package ... on the "npm" registry 或者 error Error:read ECONNRESET 1. 可以改变当前的源 查看当前使用的源 yarn config get registr 阅读全文
posted @ 2025-01-08 15:02 卡利的亲爹 阅读(50) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示