Java
229 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- Gatewayhistorical
Spring Cloud Gateway processes requests through routes, predicates, and filters. These notes begin with Route composition and examine matching and forwarding.
- Hystrixhistorical
Hystrix provides fault tolerance for microservice calls. These notes start with failure propagation and examine circuit breaking, fallback, and related mechanisms.
- 2.25 Ribbonhistorical
Ribbon is a client-side load-balancing component. These notes introduce its need and examine selection and execution during service calls.
- 2.26 Sleuthhistorical
Sleuth records traces for Spring Cloud calls and can work with Zipkin to display interactions between services.
- Zuulhistorical
Zuul is a Spring Cloud gateway component. These notes cover routing, filtering, and traffic-based rollout of new features.
- ApplicationListenerhistorical
ApplicationListener uses the observer pattern to decouple event publishers from listeners. These notes illustrate it with separate email and logging actions after ticket events.
- Bean Scopeshistorical
Singleton scope returns the same bean from the container, while prototype scope creates a new instance each time. These notes examine scope behavior.
- Usagehistorical
Examples such as HelloWorld demonstrate Spring AOP usage and the relationship between aspect configuration and target-method calls.
- Usagehistorical
Examples such as AopConfig and Calc demonstrate Spring AOP configuration and how aspects work with target objects.
- 2.32 Autowired Principlehistorical
Spring handles dependency injection during post-processor registration and bean creation. These notes trace @Autowired through AutowiredAnnotationBeanPostProcessor.