Shepherd Advanced Notes
Author

Shepherd Advanced Notes

Dedicated to sharing advanced Java technical insights, daily work snippets, and the power of persistent effort.

127
Articles
0
Likes
403
Views
0
Comments
Recent Articles

Latest from Shepherd Advanced Notes

100 recent articles max
Shepherd Advanced Notes
Shepherd Advanced Notes
Jun 19, 2024 · Fundamentals

A 20,000‑Word Deep Dive into 9 Overused Design Patterns in Real‑World Code

This article reviews nine widely used design patterns—Singleton, Builder, Factory, Strategy, Template Method, Chain of Responsibility, Proxy, Adapter, and Observer—explaining their concepts, common implementations in open‑source projects such as Spring, Dubbo, MyBatis, and providing concrete code examples and visual diagrams to help readers understand and apply them when reading source code.

AdapterBuilderChain of Responsibility
0 likes · 26 min read
A 20,000‑Word Deep Dive into 9 Overused Design Patterns in Real‑World Code
Shepherd Advanced Notes
Shepherd Advanced Notes
Jun 4, 2024 · Backend Development

Understanding Java ThreadPoolExecutor: Implementation Details and Business Best Practices

This article explains the core concepts of Java thread pools, walks through the ThreadPoolExecutor class hierarchy and key methods, analyzes thread‑pool states and execution flow, and provides practical guidelines for configuring parameters, avoiding memory leaks, handling task dependencies, and managing exceptions in production systems.

BestPracticesConcurrencyJVM
0 likes · 23 min read
Understanding Java ThreadPoolExecutor: Implementation Details and Business Best Practices
Shepherd Advanced Notes
Shepherd Advanced Notes
May 13, 2024 · Backend Development

Master Java Web Filters and Interceptors: Tutorials, Implementation Details, and Key Differences

This article explains the purpose, lifecycle, and configuration of Java Servlet Filters and Spring MVC Interceptors, compares their execution order with Spring AOP aspects, provides complete code examples for each component, and offers guidance on choosing the right mechanism for specific business requirements.

AOPInterceptorJava
0 likes · 22 min read
Master Java Web Filters and Interceptors: Tutorials, Implementation Details, and Key Differences
Shepherd Advanced Notes
Shepherd Advanced Notes
May 9, 2024 · Backend Development

How Many Simultaneous Requests Can SpringBoot Handle?

The article explains that SpringBoot’s request capacity is governed by Tomcat’s thread pool and connection settings, derives the formula max‑connections + accept‑count, demonstrates it with a small‑scale experiment, and discusses related concurrency pitfalls in singleton beans.

ConcurrencySpringBootThread Pool
0 likes · 8 min read
How Many Simultaneous Requests Can SpringBoot Handle?
Shepherd Advanced Notes
Shepherd Advanced Notes
Apr 29, 2024 · Backend Development

How to Implement Dynamic, Configurable Data Desensitization in Spring Boot

This article walks through a Spring Boot solution for dynamically masking sensitive user data—such as names, ID numbers, phone numbers, and custom fields—by defining custom annotations, a configurable rule engine, a Redis‑backed context holder, and a Jackson serializer that applies masking at JSON serialization time, all while keeping performance overhead low.

BackendCustom AnnotationHutool
0 likes · 24 min read
How to Implement Dynamic, Configurable Data Desensitization in Spring Boot
Shepherd Advanced Notes
Shepherd Advanced Notes
Apr 11, 2024 · Backend Development

How Spring Event Elegantly Decouples Business Logic: Principles, Usage, and Pitfalls

This article explains how Spring Event provides a publish‑subscribe mechanism to decouple Spring components, details its default synchronous behavior, shows how to make listeners asynchronous, demonstrates ordering and error handling, compares it with message‑queue solutions, and offers practical guidelines for safe usage.

@AsyncPublish‑SubscribeSpring
0 likes · 22 min read
How Spring Event Elegantly Decouples Business Logic: Principles, Usage, and Pitfalls
Shepherd Advanced Notes
Shepherd Advanced Notes
Apr 3, 2024 · Frontend Development

Vue Template Syntax: Interpolation and Directives Explained

This article explains Vue.js template syntax, covering how interpolation with double curly braces inserts data, the role of directives like v-bind, v-model, and v-on, shorthand notations, event modifiers, and the use of dynamic arguments introduced in Vue 2.6.0, all illustrated with concrete code examples.

DirectivesDynamic ArgumentsTemplate Syntax
0 likes · 12 min read
Vue Template Syntax: Interpolation and Directives Explained