0%

官方参考文档
baeldung参考文章

Flux

an Asynchronous Sequence of 0-N Items(是一个异步的处理序列,它有0或者多个条目)
官方对Flux的原理解析图解:

Spring Gateway的源码中重度依赖Reactor Project,比如:

1
return responseFlux.then(chain.filter(exchange));

这句代码的逻辑会这么走:要等到responseFlux被subscribe了之后,chain.filter(exchange)(这是一个Mono),才会被继续流转运行。

Mono

Mono.just

I mean that calling Mono.just(System.currentTimeMillis()) will immediately invoke the currentTimeMillis() method and capture the result

1
2
3
4
5
6
7
8
9
10
Mono<Long> clock = Mono.just(System.currentTimeMillis());
//time == t0

Thread.sleep(10_000);
//time == t10
clock.block(); //we use block for demonstration purposes, returns t0(代表这个时候获取clock的实际时间依然还是上面第一次调用System.currentTimeMillis()拿到的时间,下面雷同)

Thread.sleep(7_000);
//time == t17
clock.block(); //we re-subscribe to clock, still returns t0
Read more »

TodoItem

如果配置文件不再Application启动器的同目录或者子目录下,就需要采用@Import引入? todo

有没有自动生成banner的工具? todo

@SpringBootConfiguration和@SpringBootApplication区别 todo

bootstrap.yml非默认的情况下怎样才能被application.yml覆盖?todo

Basic Knowledge

采用SpringBoot处理国际化问题

Guide to Internationalization in Spring Boot

SpringBoot基础教程

Read more »

TodoItem

整理一下springcloud一站式解决方案的每个环节中,现在有哪些框架已经是不维护的? todo

Dubbo的生态在最近有没有经常颠覆性的完善? todo

为什么本地配置文件还要有从git加载的模式? todo

@RefreshScope用法和避坑 todo

Refresh Scope
A Spring @Bean that is marked as @RefreshScope will get special treatment when there is a configuration change. This addresses the problem of stateful beans that only get their configuration injected when they are initialized. For instance if a DataSource has open connections when the database URL is changed via the Environment, we probably want the holders of those connections to be able to complete what they are doing. Then the next time someone borrows a connection from the pool he gets one with the new URL.

Refresh scope beans are lazy proxies that initialize when they are used (i.e. when a method is called), and the scope acts as a cache of initialized values. To force a bean to re-initialize on the next method call you just need to invalidate its cache entry.

spring.cloud.config.uri的默认值作用是什么?启动警告是否需要排除掉?todo

@SpringBootApplication中指定scanBasePackages和不指定scanBasePackages的区别 todo

spring.profiles || yml配置文件

Read more »