Java
229 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- Exceptionhistorical
Java's exception hierarchy distinguishes Error from Exception, with checked and unchecked exceptions. These notes organize their meaning and handling.
- How to Handle Exceptions Elegantlyhistorical
Exception-handling wrappers can obscure business logic. These notes compare template-method and interface approaches for separating business code from error handling.
- BloomFilterhistorical
These notes begin with Guava BloomFilter usage and trace construction, writes, and lookups through hashing and bit-array operations.
- How Lombok Workshistorical
Lombok generates code through annotation processing during javac compilation. These notes examine how that process works.
- Introductionhistorical
JDBC embeds SQL in Java, while Hibernate's object mapping involves flexibility trade-offs. These notes introduce MyBatis through those issues.
- Spring Cloudhistorical
Spring Cloud provides microservice components on top of Spring Boot. These notes organize gateways, discovery, configuration, monitoring, load balancing, and circuit breaking.
- Spring Boothistorical
Spring Boot builds on Spring with auto-configuration for starting projects quickly. These notes connect usage with related auto-configuration topics.
- 2.7 Introductionhistorical
Spring MVC uses DispatcherServlet as its entry point, with HandlerMapping, HandlerAdapter, and ViewResolver handling requests and views.
- RateLimiterhistorical
Guava RateLimiter provides a rate-limiting utility based on the token-bucket approach. These notes begin with usage and continue into its implementation.
- Usagehistorical
JDBC properties, MyBatis configuration, and mapper files demonstrate the basic integration of MyBatis into a project.