Shepherd Advanced Notes
Author

Shepherd Advanced Notes

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

122
Articles
0
Likes
0
Views
0
Comments
Recent Articles

Latest from Shepherd Advanced Notes

100 recent articles max
Shepherd Advanced Notes
Shepherd Advanced Notes
Jul 16, 2024 · Information Security

Why Developers Are Abandoning JWT for Authentication and Authorization

The article examines JWT's benefits such as statelessness and CSRF protection, then details its drawbacks—including revocation difficulty, XSS risk, and token size—and presents practical solutions like blacklists, short lifetimes, and refresh‑token strategies, helping readers decide when to use JWT versus session‑based authentication.

CSRFJWTXSS
0 likes · 14 min read
Why Developers Are Abandoning JWT for Authentication and Authorization
Shepherd Advanced Notes
Shepherd Advanced Notes
Jul 12, 2024 · Backend Development

Mastering Spring MVC’s RequestBodyAdvice and ResponseBodyAdvice: Usage and Implementation Details

This article explains the purpose, core methods, and practical implementation of Spring MVC’s RequestBodyAdvice and ResponseBodyAdvice extension points, including code examples for request decryption, signature verification, response encryption, unified result wrapping, and the underlying request‑processing flow within the framework.

API SecurityEncryptionRequestBodyAdvice
0 likes · 23 min read
Mastering Spring MVC’s RequestBodyAdvice and ResponseBodyAdvice: Usage and Implementation Details
Shepherd Advanced Notes
Shepherd Advanced Notes
Jul 5, 2024 · Backend Development

Why Switch to LocalDateTime? Master Java 8 Date/Time API and Avoid Common Pitfalls

This article explains why the legacy java.util.Date and Calendar APIs are problematic, demonstrates common bugs such as integer overflow, year‑format issues, and SimpleDateFormat thread‑safety, and shows how Java 8's immutable java.time classes like LocalDate, LocalDateTime and DateTimeFormatter provide clear, safe, and concise solutions with practical code examples.

JavaJava 8date-formatting
0 likes · 21 min read
Why Switch to LocalDateTime? Master Java 8 Date/Time API and Avoid Common Pitfalls
Shepherd Advanced Notes
Shepherd Advanced Notes
Jul 1, 2024 · Fundamentals

18 Essential Practices for Effectively Reading Open‑Source Code

The article outlines why reading source code matters—interview prep, skill growth, design insight—and presents a step‑by‑step guide of 18 practical habits, from mastering the JDK and design patterns to exploring demos, focusing on purpose, main flows, and thoughtful annotation.

Design PatternsJavaRocketMQ
0 likes · 14 min read
18 Essential Practices for Effectively Reading Open‑Source Code
Shepherd Advanced Notes
Shepherd Advanced Notes
Jun 24, 2024 · Backend Development

Understanding @ControllerAdvice: Usage and Underlying Implementation in Spring MVC

The article explains how @ControllerAdvice, a specialization of @Component, enables global exception handling, data binding, and model attribute preprocessing in Spring MVC, demonstrates practical code examples for @ExceptionHandler, @InitBinder, and @ModelAttribute, and dives into the DispatcherServlet internals that make these features work.

@ControllerAdviceExceptionHandlerInitBinder
0 likes · 15 min read
Understanding @ControllerAdvice: Usage and Underlying Implementation in Spring MVC
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.

BestPracticesJVMJava
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.

AOPJavaaspect
0 likes · 22 min read
Master Java Web Filters and Interceptors: Tutorials, Implementation Details, and Key Differences