Loading

1 2 3 4 5 ··· 19 下一页
摘要: Docker pull镜像速度慢解决方案 vim /etc/docker/daemon.json 追加以下国内镜像地址: { "registry-mirrors":[ "https://docker.mirrors.ustc.edu.cn", "http://hub-mirror.c.163.com 阅读全文
posted @ 2022-09-11 23:15 dai.sp 阅读(47) 评论(0) 推荐(0) 编辑
摘要: https://files.cnblogs.com/files/gotodsp/dynamic-datasource.zip?t=1662732743 阅读全文
posted @ 2022-09-09 22:13 dai.sp 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 解决vmware 宿主机无法访问centos虚拟机问题 https://www.cnblogs.com/sky-cheng/p/15683335.html 阅读全文
posted @ 2022-09-04 22:41 dai.sp 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 环境: SpringCloud微服务(eureka注册中心); nginx作为负载均衡; 场景: Nginx → A服务 当流量高峰期时,kill A服务 A服务还没有挂掉,但是注册中心状态为OUT_OF_SERVICE,但是服务在Nginx的upstream中。 Nginx的流量还是会到达A服务, 阅读全文
posted @ 2022-02-13 12:43 dai.sp 阅读(538) 评论(0) 推荐(0) 编辑
摘要: Spring Cloud教程 Spring Cloud编程笔记 阅读全文
posted @ 2022-01-03 21:15 dai.sp 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 极简策略模式 极简策略模式2.0(妙用枚举) 阅读全文
posted @ 2022-01-03 15:20 dai.sp 阅读(48) 评论(0) 推荐(0) 编辑
摘要: windows openresty 死磕:安装和启动脚本 linux openresty 安装 openresty lua 调试 阅读全文
posted @ 2022-01-03 14:47 dai.sp 阅读(328) 评论(1) 推荐(0) 编辑
摘要: ThreadLocal的使用及原理解析 InheritableThreadLocal的使用及原理解析 TransmittableThreadLocal的使用及原理解析 阅读全文
posted @ 2021-12-27 20:21 dai.sp 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 何为ReferenceQueue 在java的引用体系中,存在着强引用,软引用,虚引用,幽灵引用,这4种引用类型。在正常的使用过程中,我们定义的类型都是强引用的,这种引用类型在回收中,只有当其它对象没有对这个对象的引用时,才会被GC回收掉。简单来说,对于以下定义: Object obj = new 阅读全文
posted @ 2021-12-24 22:02 dai.sp 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 利用热点更新技术应对秒杀场景 Mysql大并发热点行更新的两个骚操作 mysql如何解决热点数据更新问题 【系统架构】如何解决热点数据更新问题 MySQL访问行更新慢、用户线程大量堆积竟是因为它 MySQL死锁检测中热点行更新导致的性能问题 如何解决热点数据更新问题 热点行数据拆分成多条 在分布式环 阅读全文
posted @ 2021-12-11 19:34 dai.sp 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 原文连接:https://www.cnblogs.com/kancy/p/13033021.html 如何配置好Hystrix和Ribbon的超时时间呢? 其实是有套路的,因为Feign的请求:其实是Hystrix+Ribbon。Hystrix在最外层,然后再到Ribbon,最后里面的是http请求 阅读全文
posted @ 2021-12-09 21:17 dai.sp 阅读(134) 评论(0) 推荐(0) 编辑
摘要: HttpClient连接池设置引发的一次雪崩 阅读全文
posted @ 2021-12-01 21:14 dai.sp 阅读(67) 评论(0) 推荐(0) 编辑
摘要: Spring源码解析之@Configuration 阅读全文
posted @ 2021-11-27 21:46 dai.sp 阅读(44) 评论(0) 推荐(0) 编辑
摘要: Spring Boot源码-@EnableConfigurationProperties @ConfigurationProperties注解配置原理 阅读全文
posted @ 2021-11-27 10:11 dai.sp 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 本文介绍SpringCloud的另一个基础模块 Spring Cloud Commons模块 。只要在项目的pom文件中引入了 spring-cloud-starter 依赖包 ,就可以保证 spring-cloud-commons 的jar被引入。 Spring Cloud Commons模块设计 阅读全文
posted @ 2021-11-25 21:39 dai.sp 阅读(1392) 评论(0) 推荐(0) 编辑
摘要: 简介 SpringCloud这个框架本身是建立在SpringBoot基础之上的,所以使用SpringCloud的方式与SpringBoot相仿。也是通过类似如下代码进行启动。 SpringApplication.run(XxxApplication.class, args); 其中 XxxAppli 阅读全文
posted @ 2021-11-25 21:28 dai.sp 阅读(1336) 评论(0) 推荐(0) 编辑
摘要: Comparator<Object> comparator = Comparator.comparing(Obj::getValue); 小顶堆: PriorityQueue minHeap = new PriorityQueue(comparator); 大顶堆: PriorityQueue ma 阅读全文
posted @ 2021-08-09 20:56 dai.sp 阅读(1215) 评论(0) 推荐(1) 编辑
摘要: JDK源码 java.util.stream.Collectors#collectingAndThen方法的作用是将Collector的结果在执行一个额外的finisher转换操作,其源码如下: /** * Adapts a {@code Collector} to perform an addit 阅读全文
posted @ 2021-08-09 19:52 dai.sp 阅读(5100) 评论(0) 推荐(0) 编辑
摘要: 来源:blog.csdn.net/Lubanjava/article/details/100579554 一. 核心注解 二. Spring MVC和REST注解 三. Spring Boot注解 四. Stereotype注解 五. 数据访问注解 六. 任务执行、调度注解 七. 测试注解 随着技术 阅读全文
posted @ 2021-04-11 13:52 dai.sp 阅读(358) 评论(0) 推荐(1) 编辑
摘要: 《Scalable IO in Java》译文 《Scalable IO in Java》笔记 https://github.com/gotodsp/Scalable-IO 【译】Scalable IO in Java 可伸缩Java IO Scalable IO in Java Doug Lea 阅读全文
posted @ 2021-01-17 15:07 dai.sp 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 实用IntelliJ IDEA技巧 熟悉IDEA菜单栏 Navigate / Code / Refactor / Run 基本操作 选中字符串 Ctrl + W (可连续按W扩大选中范围) 大小写切换 Ctrl + Shift + U 复制 Ctrl + D 查看Class/Method/Field 阅读全文
posted @ 2020-12-21 00:08 dai.sp 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 题目 输入一个正整数,若该数能用几个连续正整数之和表示,则输出所有可能的正整数序列。 一个正整数有可能可以被表示为n(n>=2)个连续正整数之和,如: 15 = 1 + 2 + 3 + 4 + 5 15 = 4 + 5 + 6 15 = 7 + 8 解题思路 i + (i+1) + ··· + (i 阅读全文
posted @ 2020-08-10 17:26 dai.sp 阅读(1338) 评论(0) 推荐(0) 编辑
摘要: 数据库设计的指导性方针: 信息法则 关系数据库中的所有信息都用唯一的一种方式表示——表中的值。 保证访问法则 依靠表名、主键值和列名的组合,保证能访问每个数据项。 空值的系统化处理 支持空值(NULL),以系统化的方式处理空值,空值不依赖于数据类型。 基于关系模型的动态联机目录 数据库的描述应该是自 阅读全文
posted @ 2020-08-03 00:34 dai.sp 阅读(584) 评论(0) 推荐(0) 编辑
摘要: 开放API网关实践(一) ——设计一个API网关 开放API网关实践(二) —— 重放攻击及防御 开放API网关实践(三) —— 限流 阅读全文
posted @ 2020-07-16 21:03 dai.sp 阅读(471) 评论(0) 推荐(0) 编辑
摘要: 分布式服务限流实战,已经为你排好坑了 阅读全文
posted @ 2020-07-14 20:59 dai.sp 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 注解@PostConstruct与@PreDestroy使用讲解 https://zhuanlan.zhihu.com/p/100714711 阅读全文
posted @ 2020-07-14 14:00 dai.sp 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 布隆过滤器过时了,未来属于布谷鸟过滤器? 阅读全文
posted @ 2020-07-13 17:43 dai.sp 阅读(449) 评论(0) 推荐(0) 编辑
摘要: SpringBoot 的自动配置如此强大,比如我们经常使用的@Enable* 注解来开启对某方面的支持。那么@Enable* 注解的原理是什么呢? 一、@Enable* 注解与 @Import 注解之间的关系 @Enable* 举例: @EnableScheduling 开启计划任务的支持 @Ena 阅读全文
posted @ 2020-05-24 20:19 dai.sp 阅读(483) 评论(0) 推荐(0) 编辑
摘要: Any changes to a page is first done to the in-memory copy of the page. The page that is modified in memory and not yet flushed to disk is marked as th 阅读全文
posted @ 2020-03-24 20:47 dai.sp 阅读(483) 评论(0) 推荐(0) 编辑
摘要: 聚簇索引 (主键索引)(Clustered Index (Primary Index)) 聚簇索引与其说是索引,不如说是InnoDB用来存储记录的数据容器更为恰当。 InnoDB中的聚簇索引采用B-Tree组织起来,每个节点都是一个Page(InnoDB存储记录的最小单位);非叶节点存 Key 的值 阅读全文
posted @ 2020-03-24 15:08 dai.sp 阅读(1976) 评论(1) 推荐(0) 编辑
1 2 3 4 5 ··· 19 下一页