上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 41 下一页

2021年2月2日

SpringBoot启动跟代码过程

摘要: Spring容器启动第一步初始化BeanFactoryBeanPostProcessor,然后就是调用这些BeanFactoryBeanPostProcessor PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors pu 阅读全文

posted @ 2021-02-02 15:59 MaXianZhe 阅读(114) 评论(0) 推荐(0) 编辑

Spring之Condition(一)

摘要: 直接上代码 @Configuration public class ConditionalAutoConfig { @Bean @Conditional(RandIntCondition.class) public RandDataComponent<Integer> randIntComponen 阅读全文

posted @ 2021-02-02 11:45 MaXianZhe 阅读(171) 评论(0) 推荐(0) 编辑

Redis集群之故障转移

摘要: 阅读全文

posted @ 2021-02-02 09:59 MaXianZhe 阅读(79) 评论(0) 推荐(0) 编辑

2021年2月1日

Kafka之 vm.max_map_count

摘要: Maximum number of memory map areas a process may have (aka vm.max_map_count).进程可以具有的最大内存映射区域数(也称为vm.max_map_count)。 See the Linux kernel documentation 阅读全文

posted @ 2021-02-01 17:23 MaXianZhe 阅读(2784) 评论(0) 推荐(0) 编辑

Redis常见面试题

摘要: Redis 的过期策略和内存淘汰机制 定期删除,Redis 默认每个 100ms 检查,有过期 Key 则删除。需要说明的是,Redis 不是每个 100ms 将所有的 Key 检查一次,而是随机抽取进行检查。如果只采用定期删除策略,会导致很多 Key 到时间没有删除。于是,惰性删除派上用场。 定时 阅读全文

posted @ 2021-02-01 14:17 MaXianZhe 阅读(63) 评论(0) 推荐(0) 编辑

Redis为什么快

摘要: 三点 这个问题是对 Redis 内部机制的一个考察。很多人都不知道 Redis 是单线程工作模型。 原因主要是以下三点: 纯内存操作 单线程操作,避免了频繁的上下文切换 采用了非阻塞 I/O 多路复用机制 阅读全文

posted @ 2021-02-01 11:47 MaXianZhe 阅读(48) 评论(0) 推荐(0) 编辑

TCP一个包多大

摘要: UDP 包的大小就应该是 1500 - IP头(20) - UDP头(8) = 1472(Bytes)TCP 包的大小就应该是 1500 - IP头(20) - TCP头(20) = 1460 (Bytes) 阅读全文

posted @ 2021-02-01 11:40 MaXianZhe 阅读(1247) 评论(0) 推荐(0) 编辑

JDK8流式处理常用例子

摘要: public class Apple { private Integer id; private String name; private BigDecimal money; private Integer num; public Apple(Integer id, String name, Big 阅读全文

posted @ 2021-02-01 09:18 MaXianZhe 阅读(192) 评论(0) 推荐(0) 编辑

2021年1月31日

JDK8时间新API

摘要: @RunWith(JUnit4.class) public class Jdk8DateTime { @Test public void practiceLocalDate() { LocalDate localDate = LocalDate.now(); System.out.println(l 阅读全文

posted @ 2021-01-31 22:31 MaXianZhe 阅读(44) 评论(0) 推荐(0) 编辑

2021年1月30日

SpringBoot加载配置文件的顺序

摘要: 配置文件路径的优先级:我们从属性:DEFAULT_SEARCH_LOCATIONS = "classpath:/,classpath:/config/,file:./,file:./config/可以看出文件路径的先后顺序(注意:后加载的会覆盖先加载的): classpath:/classpath: 阅读全文

posted @ 2021-01-30 20:57 MaXianZhe 阅读(174) 评论(0) 推荐(0) 编辑

上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 41 下一页

导航