0%

文章

的学习笔记

布隆过滤器(Bloom Filter),是 1970 年由布隆提出的,主要用于判断一个元素是否在一个集合中

传统集合储存元素的痛点是储存空间随元素个数线性增加,当数据量很多时,缺点便显现了出来,布隆过滤器解决了这一问题

阅读全文 »

文章

的学习笔记

ThreadLocal中填充的变量属于当前线程,与其他线程独立。ThreadLocal为变量在每个线程中都创建了一个副本,每个线程访问自己内部的变量

使用方式👇

阅读全文 »

@ConditionalOn…注解

参考文章 https://zhuanlan.zhihu.com/p/78251301

源码分析

在Spring中,如果想要满足一定条件才加载某个bean到IoC容器,只能使用@Conditional注解

1
2
3
4
5
6
7
8
public @interface Conditional {

/**
* All {@link Condition Conditions} that must {@linkplain Condition#matches match}
* in order for the component to be registered.
*/
Class<? extends Condition>[] value();
}
阅读全文 »

CS305 Project Report

Our data collected below are all based on the follwing event:

1
2
3
4
0 link 200000
20 link 20000
20 link 1000
20 link 200

In the event file, we make the bandwidth decrease every 20s, so the network becomes more congested.

Smoothness

阅读全文 »

使用Docker+Nginx部署于: quanquancho.com

Overview

In this project, we mainly discuss two major issues:

  • Hot dependencies in pom.xml

    image-20220525162622256

  • Tool used contribution in different countries

    image-20220525162657598

    image-20220525162738565

The architecture of the project is Vue + SpringBoot. The development of frontend and backend are splited, and as a result any of them can work separately. The interaction between the frontend and the backend are achieved through Rest API, and we use Json as the data exchange format.

阅读全文 »