0%

@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();
}
阅读全文 »

期末考试后尝试部署CS209A的SpringBoot+Vue前后端分离项目,踩了很多坑,在此总结一下

地址: https://quanquancho.com

IDEA集成Docker

该内容的视频B站上有很多,再此不过多赘述

需要注意的是,IDEA中拉取镜像使用的不是服务器的镜像源

阅读全文 »

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.

阅读全文 »